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

Unified Diff: test/mjsunit/asm/math-abs.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/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 };

Powered by Google App Engine
This is Rietveld 408576698