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

Unified Diff: test/mjsunit/asm/uint32-less-than-shift.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/switch.js ('k') | test/mjsunit/asm/uint32div.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/uint32-less-than-shift.js
diff --git a/test/mjsunit/asm/uint32-less-than-shift.js b/test/mjsunit/asm/uint32-less-than-shift.js
index 7384e21ebd3f366d5ca6d8e78aeaba6ee196f44c..fb201bb5f00d2ccd0376845779434bba645e8436 100644
--- a/test/mjsunit/asm/uint32-less-than-shift.js
+++ b/test/mjsunit/asm/uint32-less-than-shift.js
@@ -7,7 +7,8 @@ function Module(stdlib, foreign, heap) {
function foo1(i1) {
i1 = i1 | 0;
- var i10 = i1 >> 5;
+ var i10 = 0;
+ i10 = (i1 >> 5) | 0;
if (i10 >>> 0 < 5) {
return 1;
} else {
@@ -18,7 +19,8 @@ function Module(stdlib, foreign, heap) {
function foo2(i1) {
i1 = i1 | 0;
- var i10 = i1 / 32 | 0;
+ var i10 = 0;
+ i10 = ((i1 | 0) / 32) | 0;
if (i10 >>> 0 < 5) {
return 1;
} else {
@@ -29,7 +31,8 @@ function Module(stdlib, foreign, heap) {
function foo3(i1) {
i1 = i1 | 0;
- var i10 = (i1 + 32 | 0) / 32 | 0;
+ var i10 = 0;
+ i10 = (i1 + 32 | 0) / 32 | 0;
if (i10 >>> 0 < 5) {
return 1;
} else {
« no previous file with comments | « test/mjsunit/asm/switch.js ('k') | test/mjsunit/asm/uint32div.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698