Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: test/mjsunit/asm/float32array-store-div.js

Issue 2663243002: [asm] Fix lots of invalid asm.js tests (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/asm/float32array-outofbounds.js ('k') | test/mjsunit/asm/float64array-negative-offset.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/float32array-store-div.js
diff --git a/test/mjsunit/asm/float32array-store-div.js b/test/mjsunit/asm/float32array-store-div.js
index 78224f962b7971f2b86a5381e98e2bbd2c63ca13..45f3fd5f213fd7a6733f80d60e0c13cccd4f3f8b 100644
--- a/test/mjsunit/asm/float32array-store-div.js
+++ b/test/mjsunit/asm/float32array-store-div.js
@@ -6,8 +6,9 @@ function Module(stdlib, foreign, heap) {
"use asm";
var MEM32 = new stdlib.Float32Array(heap);
function foo(i) {
- MEM32[0] = (i >>> 0) / 2;
- return MEM32[0];
+ i = i | 0;
+ MEM32[0] = +(i >>> 0) / 2.;
+ return +MEM32[0];
}
return { foo: foo };
}
« no previous file with comments | « test/mjsunit/asm/float32array-outofbounds.js ('k') | test/mjsunit/asm/float64array-negative-offset.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698