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

Unified Diff: test/mjsunit/asm/math-abs.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/load-elimination.js ('k') | test/mjsunit/asm/math-ceil.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/math-abs.js
diff --git a/test/mjsunit/asm/math-abs.js b/test/mjsunit/asm/math-abs.js
index 6387749e0326c8e40834cfa7872efd65a1b097fe..bf7c7d07eabcb64b7505aaf4afe0b431ac1af0c0 100644
--- a/test/mjsunit/asm/math-abs.js
+++ b/test/mjsunit/asm/math-abs.js
@@ -15,14 +15,14 @@ function Module(stdlib) {
// g: unsigned -> double
function g(a) {
- a = a>>>0;
- return +abs(a);
+ a = a | 0;
+ return +abs(+(a >>> 0));
}
// h: signed -> double
function h(a) {
a = a|0;
- return +abs(a);
+ return +abs(+(a | 0));
}
return { f: f, g: g, h: h };
« no previous file with comments | « test/mjsunit/asm/load-elimination.js ('k') | test/mjsunit/asm/math-ceil.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698