summaryrefslogtreecommitdiff
path: root/test/wasm2js
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2020-06-22 22:15:53 +0300
committerGitHub <noreply@github.com>2020-06-22 12:15:53 -0700
commita3acdae356fc53eecdb52338d9bdd82310afa8a7 (patch)
treed87618ce2b20b5be1042f576a341a4dda570ad03 /test/wasm2js
parent721f15831ca547de98992f9ce6158d822b94d167 (diff)
downloadbinaryen-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.opt2
-rw-r--r--test/wasm2js/unary-ops.2asm.js.opt2
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;