summaryrefslogtreecommitdiff
path: root/test/wasm2js/i64.2asm.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-04-10 10:42:50 -0700
committerGitHub <noreply@github.com>2019-04-10 10:42:50 -0700
commit85c303de41b1e0d46cb3d389512b9ab10472391e (patch)
tree7c1c85219eabc1bffd0212aeeb311c42a1aa33b8 /test/wasm2js/i64.2asm.js
parent3b27c3bc9a155315dd3b417edca16094571f5ff6 (diff)
downloadbinaryen-85c303de41b1e0d46cb3d389512b9ab10472391e.tar.gz
binaryen-85c303de41b1e0d46cb3d389512b9ab10472391e.tar.bz2
binaryen-85c303de41b1e0d46cb3d389512b9ab10472391e.zip
Minor wasm2js cleanups (#1995)
* Only look at the sign of loads when they actually matter. * Prepare for imported globals (just refactoring/cleanup).
Diffstat (limited to 'test/wasm2js/i64.2asm.js')
-rw-r--r--test/wasm2js/i64.2asm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/wasm2js/i64.2asm.js b/test/wasm2js/i64.2asm.js
index 4edf6f67b..065cf071e 100644
--- a/test/wasm2js/i64.2asm.js
+++ b/test/wasm2js/i64.2asm.js
@@ -1304,7 +1304,7 @@ function asmFunc(global, env, buffer) {
i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0;
i64toi32_i32$0 = i64toi32_i32$HIGH_BITS;
i64toi32_i32$2 = 1024;
- i64toi32_i32$0 = HEAPU32[i64toi32_i32$2 >> 2] | 0;
+ i64toi32_i32$0 = HEAP32[i64toi32_i32$2 >> 2] | 0;
i64toi32_i32$1 = (wasm2js_i32$0 = i64toi32_i32$2, HEAPU8[(wasm2js_i32$0 + 4 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2js_i32$0 + 5 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2js_i32$0 + 6 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2js_i32$0 + 7 | 0) >> 0] | 0 | 0) << 24);
i64toi32_i32$HIGH_BITS = i64toi32_i32$1;
return i64toi32_i32$0 | 0;