diff options
author | Max Graey <maxgraey@gmail.com> | 2020-06-22 22:15:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 12:15:53 -0700 |
commit | a3acdae356fc53eecdb52338d9bdd82310afa8a7 (patch) | |
tree | d87618ce2b20b5be1042f576a341a4dda570ad03 /test/wasm2js | |
parent | 721f15831ca547de98992f9ce6158d822b94d167 (diff) | |
download | binaryen-a3acdae356fc53eecdb52338d9bdd82310afa8a7.tar.gz binaryen-a3acdae356fc53eecdb52338d9bdd82310afa8a7.tar.bz2 binaryen-a3acdae356fc53eecdb52338d9bdd82310afa8a7.zip |
More optimizations for pow of two and pos/neg one const on the right (#2870)
Diffstat (limited to 'test/wasm2js')
-rw-r--r-- | test/wasm2js/i64-ctz.2asm.js.opt | 2 | ||||
-rw-r--r-- | test/wasm2js/unary-ops.2asm.js.opt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/wasm2js/i64-ctz.2asm.js.opt b/test/wasm2js/i64-ctz.2asm.js.opt index 6e1a54fae..b651dae29 100644 --- a/test/wasm2js/i64-ctz.2asm.js.opt +++ b/test/wasm2js/i64-ctz.2asm.js.opt @@ -40,7 +40,7 @@ function asmFunc(global, env, buffer) { if ($0 | $1) { $3 = $1 + -1 | 0; $2 = $0 + -1 | 0; - if ($2 >>> 0 < 4294967295) { + if (($2 | 0) != -1) { $3 = $3 + 1 | 0 } $2 = Math_clz32($0 ^ $2) + 32 | 0; diff --git a/test/wasm2js/unary-ops.2asm.js.opt b/test/wasm2js/unary-ops.2asm.js.opt index 180f89dd0..425e223ff 100644 --- a/test/wasm2js/unary-ops.2asm.js.opt +++ b/test/wasm2js/unary-ops.2asm.js.opt @@ -81,7 +81,7 @@ function asmFunc(global, env, buffer) { if ($0 | $1_1) { $3 = $1_1 + -1 | 0; $2 = $0 + -1 | 0; - if ($2 >>> 0 < 4294967295) { + if (($2 | 0) != -1) { $3 = $3 + 1 | 0 } $2 = Math_clz32($0 ^ $2) + 32 | 0; |