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

Unified Diff: test/mjsunit/asm/zero-extend.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/word32ror.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/zero-extend.js
diff --git a/test/mjsunit/asm/zero-extend.js b/test/mjsunit/asm/zero-extend.js
index a1f9da65a2166b85e83b03d7fc1ffa2b2e273685..3e34aac88bd4e48fc148e82fbfc56e98b89e930e 100644
--- a/test/mjsunit/asm/zero-extend.js
+++ b/test/mjsunit/asm/zero-extend.js
@@ -10,8 +10,8 @@ var foreign = {}
var zext8 = (function Module(stdlib, foreign, heap) {
"use asm";
function zext8(i) {
- i = i|0;
- return i & 0xff;
+ i = i | 0;
+ return (i & 0xff) | 0;
}
return { zext8: zext8 };
})(stdlib, foreign, buffer).zext8;
@@ -25,8 +25,8 @@ assertEquals(0xff, zext8(0xff));
var zext16 = (function Module(stdlib, foreign, heap) {
"use asm";
function zext16(i) {
- i = i|0;
- return i & 0xffff;
+ i = i | 0;
+ return (i & 0xffff) | 0;
}
return { zext16: zext16 };
})(stdlib, foreign, buffer).zext16;
« no previous file with comments | « test/mjsunit/asm/word32ror.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698