summaryrefslogtreecommitdiff
path: root/test/passes/vacuum.txt
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-06-12 16:50:28 -0700
committerGitHub <noreply@github.com>2017-06-12 16:50:28 -0700
commit68dc2eddc24844c7582cafa85afeb4023a47888f (patch)
treefcaedc839420fe43c555166420865d5aeef0dbfa /test/passes/vacuum.txt
parent93c65f98b7a9b0977578dbf55778529efec646f1 (diff)
downloadbinaryen-68dc2eddc24844c7582cafa85afeb4023a47888f.tar.gz
binaryen-68dc2eddc24844c7582cafa85afeb4023a47888f.tar.bz2
binaryen-68dc2eddc24844c7582cafa85afeb4023a47888f.zip
Support new result syntax for if/loop/block (#1047)
Support both syntax formats in input since the old spec tests still need to be parsable.
Diffstat (limited to 'test/passes/vacuum.txt')
-rw-r--r--test/passes/vacuum.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/passes/vacuum.txt b/test/passes/vacuum.txt
index f5894c693..d1a388333 100644
--- a/test/passes/vacuum.txt
+++ b/test/passes/vacuum.txt
@@ -51,7 +51,7 @@
)
(func $Gu (type $4) (param $b i32) (param $e f64) (param $l i32) (param $d i32)
(if
- (if i32
+ (if (result i32)
(get_local $d)
(f64.ne
(f64.promote/f32
@@ -123,7 +123,7 @@
)
(func $if2drops (type $3) (result i32)
(drop
- (if i32
+ (if (result i32)
(call $if2drops)
(call $if2drops)
(call $if2drops)
@@ -157,7 +157,7 @@
(func $drop-if-both-unreachable (type $1) (param $0 i32)
(block $out
(drop
- (if i32
+ (if (result i32)
(get_local $0)
(br $out)
(br $out)
@@ -165,7 +165,7 @@
)
)
(drop
- (if i32
+ (if (result i32)
(get_local $0)
(unreachable)
(unreachable)