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

Unified Diff: test/mjsunit/asm/if-tonumber.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/if-reduction.js ('k') | test/mjsunit/asm/infinite-loops-taken.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/if-tonumber.js
diff --git a/test/mjsunit/asm/if-tonumber.js b/test/mjsunit/asm/if-tonumber.js
index dd3f73b2c2a7ff2a05e5eabd3decf374b07d12c8..f604fbcef8bfec80ade60235180b5878dc05aeab 100644
--- a/test/mjsunit/asm/if-tonumber.js
+++ b/test/mjsunit/asm/if-tonumber.js
@@ -10,8 +10,8 @@ function Module(stdlib, foreign, heap) {
"use asm";
function foo(i) {
i = i|0;
- if (i > 0) {
- i = i == 1;
+ if ((i | 0) > 0) {
+ i = (i | 0) == 1;
} else {
i = 1;
}
« no previous file with comments | « test/mjsunit/asm/if-reduction.js ('k') | test/mjsunit/asm/infinite-loops-taken.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698