summaryrefslogtreecommitdiff
path: root/test/emcc_hello_world.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-11-04 17:24:01 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-11-04 17:24:01 -0700
commit13ce3488333f70607411eb504ea2046fe2dc7c6d (patch)
tree6f7e8a6a529016dd7bb79d1c762d24e47d07bef2 /test/emcc_hello_world.fromasm.imprecise
parentfd5d26f549ec95f46d8696dac51ba5b5f7316248 (diff)
downloadbinaryen-13ce3488333f70607411eb504ea2046fe2dc7c6d.tar.gz
binaryen-13ce3488333f70607411eb504ea2046fe2dc7c6d.tar.bz2
binaryen-13ce3488333f70607411eb504ea2046fe2dc7c6d.zip
optimize booleans through i32.or
Diffstat (limited to 'test/emcc_hello_world.fromasm.imprecise')
-rw-r--r--test/emcc_hello_world.fromasm.imprecise17
1 files changed, 5 insertions, 12 deletions
diff --git a/test/emcc_hello_world.fromasm.imprecise b/test/emcc_hello_world.fromasm.imprecise
index d95790044..8417befb4 100644
--- a/test/emcc_hello_world.fromasm.imprecise
+++ b/test/emcc_hello_world.fromasm.imprecise
@@ -6325,15 +6325,11 @@
(i32.const 1)
)
)
- (i32.eqz
- (i32.eqz
- (i32.and
- (i32.load
- (get_local $0)
- )
- (i32.const 32)
- )
+ (i32.and
+ (i32.load
+ (get_local $0)
)
+ (i32.const 32)
)
)
)
@@ -7029,10 +7025,7 @@
(set_local $6
(if i32
(i32.or
- (i32.ne
- (get_local $7)
- (i32.const 0)
- )
+ (get_local $7)
(tee_local $9
(i32.or
(i32.ne