diff options
author | Alon Zakai <azakai@google.com> | 2019-05-13 16:55:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-13 16:55:06 -0700 |
commit | b4eb90ce9bc43d9f3897bd13d6fd11f40f706b5a (patch) | |
tree | 0b3b5f9b8974dea18ace6b059e1729635a8ff571 /test/wasm2js/func-ptr-offset.2asm.js.opt | |
parent | 67019f9a72175bc7a098d72aa14a6f6afeb2efce (diff) | |
download | binaryen-b4eb90ce9bc43d9f3897bd13d6fd11f40f706b5a.tar.gz binaryen-b4eb90ce9bc43d9f3897bd13d6fd11f40f706b5a.tar.bz2 binaryen-b4eb90ce9bc43d9f3897bd13d6fd11f40f706b5a.zip |
wasm2js: precompute bitwise operations (#2101)
This happens on e.g. an i32 load of a constant offset, then we have constant >> 2.
Diffstat (limited to 'test/wasm2js/func-ptr-offset.2asm.js.opt')
-rw-r--r-- | test/wasm2js/func-ptr-offset.2asm.js.opt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/wasm2js/func-ptr-offset.2asm.js.opt b/test/wasm2js/func-ptr-offset.2asm.js.opt index 4237ffb05..3feda1f68 100644 --- a/test/wasm2js/func-ptr-offset.2asm.js.opt +++ b/test/wasm2js/func-ptr-offset.2asm.js.opt @@ -21,15 +21,15 @@ function asmFunc(global, env, buffer) { var nan = global.NaN; var infinity = global.Infinity; function t1() { - return 1 | 0; + return 1; } function t2() { - return 2 | 0; + return 2; } function t3() { - return 3 | 0; + return 3; } function $3($0) { |