summaryrefslogtreecommitdiff
path: root/test/emcc_O2_hello_world.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-10-27 09:19:16 -0700
committerGitHub <noreply@github.com>2016-10-27 09:19:16 -0700
commitafad1ee305719cf2a34b6dcccff72b07e1a5e34d (patch)
treee9900a4b3e26b83d6747523f23bb28180a8a6c6d /test/emcc_O2_hello_world.fromasm.imprecise
parent7047ed25b3ca34aeddb67d0082a998fec0841372 (diff)
downloadbinaryen-afad1ee305719cf2a34b6dcccff72b07e1a5e34d.tar.gz
binaryen-afad1ee305719cf2a34b6dcccff72b07e1a5e34d.tar.bz2
binaryen-afad1ee305719cf2a34b6dcccff72b07e1a5e34d.zip
optimize ne of 0 in a boolean context (#808)
Diffstat (limited to 'test/emcc_O2_hello_world.fromasm.imprecise')
-rw-r--r--test/emcc_O2_hello_world.fromasm.imprecise28
1 files changed, 8 insertions, 20 deletions
diff --git a/test/emcc_O2_hello_world.fromasm.imprecise b/test/emcc_O2_hello_world.fromasm.imprecise
index 8fc101afc..0cd471b28 100644
--- a/test/emcc_O2_hello_world.fromasm.imprecise
+++ b/test/emcc_O2_hello_world.fromasm.imprecise
@@ -1971,10 +1971,7 @@
)
)
(i32.const 0)
- (i32.ne
- (get_local $12)
- (i32.const 0)
- )
+ (get_local $12)
)
(block
(if
@@ -3121,13 +3118,10 @@
)
(if
(if i32
- (i32.ne
- (tee_local $10
- (i32.load
- (i32.const 616)
- )
+ (tee_local $10
+ (i32.load
+ (i32.const 616)
)
- (i32.const 0)
)
(i32.or
(i32.le_u
@@ -3397,10 +3391,7 @@
)
)
(i32.const 0)
- (i32.ne
- (get_local $5)
- (i32.const 0)
- )
+ (get_local $5)
)
)
(if
@@ -3693,13 +3684,10 @@
)
)
(br_if $do-in
- (i32.ne
- (tee_local $3
- (i32.load offset=8
- (get_local $3)
- )
+ (tee_local $3
+ (i32.load offset=8
+ (get_local $3)
)
- (i32.const 0)
)
)
)