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

Unified Diff: test/mjsunit/asm/redundancy1.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/math-floor.js ('k') | test/mjsunit/asm/redundancy2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/redundancy1.js
diff --git a/test/mjsunit/asm/redundancy1.js b/test/mjsunit/asm/redundancy1.js
index c7e0e37453c6b9a5b6792dd389d3b8993306b780..a3e3339bedfa0fedf9ae8c67e902e5cd00d15b5b 100644
--- a/test/mjsunit/asm/redundancy1.js
+++ b/test/mjsunit/asm/redundancy1.js
@@ -7,15 +7,15 @@
function module(stdlib, foreign, heap) {
"use asm";
function foo(i) {
- var j = 0;
i = i|0;
- if (i < 0) {
+ var j = 0;
+ if ((i | 0) < 0) {
j = i+1|0;
}
- if (i > 0) {
+ if ((i | 0) > 0) {
j = i+1|0;
}
- return j;
+ return j | 0;
}
return { foo: foo };
}
« no previous file with comments | « test/mjsunit/asm/math-floor.js ('k') | test/mjsunit/asm/redundancy2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698