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/i64-rotate.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/i64-rotate.2asm.js.opt')
-rw-r--r-- | test/wasm2js/i64-rotate.2asm.js.opt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/wasm2js/i64-rotate.2asm.js.opt b/test/wasm2js/i64-rotate.2asm.js.opt index d2a2c81ad..f02ec7d18 100644 --- a/test/wasm2js/i64-rotate.2asm.js.opt +++ b/test/wasm2js/i64-rotate.2asm.js.opt @@ -34,7 +34,7 @@ function asmFunc(global, env, buffer) { $6 = $2 & 63; $5 = $6; $3 = $5 & 31; - if (32 >>> 0 <= $5 >>> 0) { + if (32 <= $5 >>> 0) { $3 = -1 >>> $3 } else { $4 = -1 >>> $3; @@ -43,7 +43,7 @@ function asmFunc(global, env, buffer) { $5 = $3 & $0; $3 = $1 & $4; $4 = $6 & 31; - if (32 >>> 0 <= $6 >>> 0) { + if (32 <= $6 >>> 0) { $3 = $5 << $4; $6 = 0; } else { @@ -54,7 +54,7 @@ function asmFunc(global, env, buffer) { $4 = 0 - $2 & 63; $3 = $4; $2 = $3 & 31; - if (32 >>> 0 <= $3 >>> 0) { + if (32 <= $3 >>> 0) { $3 = -1 << $2; $2 = 0; } else { @@ -64,7 +64,7 @@ function asmFunc(global, env, buffer) { $0 = $2 & $0; $3 = $1 & $3; $1 = $4 & 31; - if (32 >>> 0 <= $4 >>> 0) { + if (32 <= $4 >>> 0) { $2 = 0; $0 = $3 >>> $1; } else { @@ -80,7 +80,7 @@ function asmFunc(global, env, buffer) { var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0; $6 = $2 & 63; $3 = $6 & 31; - if (32 >>> 0 <= $6 >>> 0) { + if (32 <= $6 >>> 0) { $4 = -1 << $3; $7 = 0; } else { @@ -90,7 +90,7 @@ function asmFunc(global, env, buffer) { $7 = $7 & $0; $3 = $1 & $4; $5 = $6 & 31; - if (32 >>> 0 <= $6 >>> 0) { + if (32 <= $6 >>> 0) { $4 = 0; $6 = $3 >>> $5; } else { @@ -100,7 +100,7 @@ function asmFunc(global, env, buffer) { $7 = $4; $3 = 0 - $2 & 63; $5 = $3 & 31; - if (32 >>> 0 <= $3 >>> 0) { + if (32 <= $3 >>> 0) { $4 = 0; $2 = -1 >>> $5; } else { @@ -110,7 +110,7 @@ function asmFunc(global, env, buffer) { $0 = $2 & $0; $1 = $1 & $4; $4 = $3 & 31; - if (32 >>> 0 <= $3 >>> 0) { + if (32 <= $3 >>> 0) { $2 = $0 << $4; $0 = 0; } else { |