summaryrefslogtreecommitdiff
path: root/test/emcc_hello_world.fromasm
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-10 14:24:11 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-10 14:25:04 -0700
commit1c6a1375140c7b2ef720e706d7d97efe7140cdcc (patch)
treee1f6941d03ed1cd074743a071006d22f7a048ad4 /test/emcc_hello_world.fromasm
parent91b33ce4d692c221336f2d6d4345eb239ead401e (diff)
downloadbinaryen-1c6a1375140c7b2ef720e706d7d97efe7140cdcc.tar.gz
binaryen-1c6a1375140c7b2ef720e706d7d97efe7140cdcc.tar.bz2
binaryen-1c6a1375140c7b2ef720e706d7d97efe7140cdcc.zip
optimize eqz^2 in select and br_if
Diffstat (limited to 'test/emcc_hello_world.fromasm')
-rw-r--r--test/emcc_hello_world.fromasm30
1 files changed, 9 insertions, 21 deletions
diff --git a/test/emcc_hello_world.fromasm b/test/emcc_hello_world.fromasm
index fb1163576..06b48ffd6 100644
--- a/test/emcc_hello_world.fromasm
+++ b/test/emcc_hello_world.fromasm
@@ -6601,15 +6601,11 @@
(get_local $41)
(block
(br_if $do-once$114
- (i32.eqz
- (i32.eqz
- (i32.and
- (i32.load
- (get_local $0)
- )
- (i32.const 32)
- )
+ (i32.and
+ (i32.load
+ (get_local $0)
)
+ (i32.const 32)
)
)
(drop
@@ -6955,15 +6951,11 @@
(i32.const 0)
)
(br_if $do-once$106
- (i32.eqz
- (i32.eqz
- (i32.and
- (i32.load
- (get_local $0)
- )
- (i32.const 32)
- )
+ (i32.and
+ (i32.load
+ (get_local $0)
)
+ (i32.const 32)
)
)
(drop
@@ -12923,11 +12915,7 @@
(get_local $16)
)
(br_if $do-once$63
- (i32.eqz
- (i32.eqz
- (get_local $16)
- )
- )
+ (get_local $16)
)
(i32.store
(i32.const 180)