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

Unified Diff: test/mjsunit/asm/do-while-false.js

Issue 2663243002: [asm] Fix lots of invalid asm.js tests (Closed)
Patch Set: clang-format Created 3 years, 11 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
Index: test/mjsunit/asm/do-while-false.js
diff --git a/test/mjsunit/asm/do-while-false.js b/test/mjsunit/asm/do-while-false.js
index ba906a0ab395dceb42c485b02900374ec86c3e44..e4cf375b0127676e8c83295c01a00a835ccd4fbb 100644
--- a/test/mjsunit/asm/do-while-false.js
+++ b/test/mjsunit/asm/do-while-false.js
@@ -41,11 +41,11 @@ function Module() {
function d6(a) {
a = a | 0;
do {
- if (a == 0) return 120;
- if (a == 1) break;
- if (a == 2) return 122;
- if (a == 3) continue;
- if (a == 4) return 124;
+ if ((a | 0) == 0) return 120;
+ if ((a | 0) == 1) break;
+ if ((a | 0) == 2) return 122;
+ if ((a | 0) == 3) continue;
+ if ((a | 0) == 4) return 124;
} while(false);
return 125;
}

Powered by Google App Engine
This is Rietveld 408576698