Index: test/mjsunit/asm/load-elimination.js |
diff --git a/test/mjsunit/asm/load-elimination.js b/test/mjsunit/asm/load-elimination.js |
index cdc996222e6833b772b046f3ad0c13d35b6a0180..fff722d0178268de12f6c649d6c2b114488e4224 100644 |
--- a/test/mjsunit/asm/load-elimination.js |
+++ b/test/mjsunit/asm/load-elimination.js |
@@ -10,12 +10,13 @@ var heap = new ArrayBuffer(64 * 1024 * 1024); |
var foo = (function(stdlib, foreign, heap) { |
"use asm"; |
- var M16 = new Int16Array(heap); |
- var M32 = new Int32Array(heap); |
+ var M16 = new stdlib.Int16Array(heap); |
+ var M32 = new stdlib.Int32Array(heap); |
function foo() { |
+ var i = 0; |
M32[0] = 0x12341234; |
- var i = M32[0]; |
- return M16[0]; |
+ i = M32[0] | 0; |
+ return M16[0] | 0; |
} |
return foo; |
})(stdlib, foreign, heap); |