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

Unified Diff: test/mjsunit/asm/word32ror.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/word32and.js ('k') | test/mjsunit/asm/zero-extend.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/word32ror.js
diff --git a/test/mjsunit/asm/word32ror.js b/test/mjsunit/asm/word32ror.js
index 9535bdee8a5e63c60133569200deb0a158339070..6891cd124f3150f7f00a1a30aef61506c0faa34d 100644
--- a/test/mjsunit/asm/word32ror.js
+++ b/test/mjsunit/asm/word32ror.js
@@ -11,7 +11,7 @@ var rol = (function Module(stdlib, foreign, heap) {
function rol(x, y) {
x = x | 0;
y = y | 0;
- return (x << y) | (x >>> (32 - y));
+ return (x << y) | (x >>> (32 - y)) | 0;
}
return { rol: rol };
})(stdlib, foreign, heap).rol;
@@ -26,7 +26,7 @@ var ror = (function Module(stdlib, foreign, heap) {
function ror(x, y) {
x = x | 0;
y = y | 0;
- return (x << (32 - y)) | (x >>> y);
+ return (x << (32 - y)) | (x >>> y) | 0;
}
return { ror: ror };
})(stdlib, foreign, heap).ror;
« no previous file with comments | « test/mjsunit/asm/word32and.js ('k') | test/mjsunit/asm/zero-extend.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698