summaryrefslogtreecommitdiff
path: root/test/binaryen.js/sieve.js.txt
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-02-14 08:06:52 -0800
committerGitHub <noreply@github.com>2018-02-14 08:06:52 -0800
commite97d485bb1f1818e2c2118d28507d49cb61ea57b (patch)
treee1ef9db3f9b95ba4d279ec6c421e0b1c4f2a3b22 /test/binaryen.js/sieve.js.txt
parent41faf2409f3e1d8d2dcaf456141f4ce6ac6a3d75 (diff)
downloadbinaryen-e97d485bb1f1818e2c2118d28507d49cb61ea57b.tar.gz
binaryen-e97d485bb1f1818e2c2118d28507d49cb61ea57b.tar.bz2
binaryen-e97d485bb1f1818e2c2118d28507d49cb61ea57b.zip
More simple math opts (#1414)
* optimize more simple math operations: mul of 0, or of 0, and of 0, mul of 1, mul of a power of 2, urem of a power of 2 * fix asm2wasm callImport parsing: the optimizer may get rid of the added offset to a function table * update js builds
Diffstat (limited to 'test/binaryen.js/sieve.js.txt')
-rw-r--r--test/binaryen.js/sieve.js.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/binaryen.js/sieve.js.txt b/test/binaryen.js/sieve.js.txt
index cd1c47362..2c4b906dd 100644
--- a/test/binaryen.js/sieve.js.txt
+++ b/test/binaryen.js/sieve.js.txt
@@ -62,9 +62,9 @@ optimized:
(local $1 i32)
(if
(i32.lt_u
- (i32.mul
+ (i32.shl
(current_memory)
- (i32.const 65536)
+ (i32.const 16)
)
(get_local $0)
)