summaryrefslogtreecommitdiff
path: root/test/unit.fromasm
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-24 16:39:18 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-24 16:47:52 -0700
commit97cf0d7bf6f115d44636dd52dc7c0036567ca798 (patch)
treec6862019f90650140f86c2c5c02377ba2b6ad3ce /test/unit.fromasm
parentf28bba29833bad06a76c7aabf31cf0257e12f5ba (diff)
downloadbinaryen-97cf0d7bf6f115d44636dd52dc7c0036567ca798.tar.gz
binaryen-97cf0d7bf6f115d44636dd52dc7c0036567ca798.tar.bz2
binaryen-97cf0d7bf6f115d44636dd52dc7c0036567ca798.zip
optimize if(const)
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r--test/unit.fromasm12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm
index 6d0952bd4..e08babd28 100644
--- a/test/unit.fromasm
+++ b/test/unit.fromasm
@@ -509,7 +509,7 @@
)
(func $smallIf
(if
- (i32.const 2)
+ (call $return_int)
(drop
(call $lb
(i32.const 3)
@@ -594,7 +594,7 @@
(func $conditionalTypeFun
(drop
(if
- (i32.const 1)
+ (call $return_int)
(i32.trunc_s/f64
(call $abort
(f64.convert_s/i32
@@ -607,7 +607,7 @@
)
(drop
(if
- (i32.const 3)
+ (call $return_int)
(call $abort
(f64.convert_s/i32
(i32.const 7)
@@ -696,7 +696,7 @@
(get_global $Int)
)
(if
- (i32.const 1)
+ (call $return_int)
(set_global $Int
(i32.const 20)
)
@@ -715,7 +715,7 @@
)
(func $dropCallImport
(if
- (i32.const 1)
+ (call $return_int)
(drop
(call $return_int)
)
@@ -768,7 +768,7 @@
(get_local $0)
)
(if
- (i32.const 1)
+ (call $return_int)
(br_if $label$break$L7
(get_local $2)
)