summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-brs.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/remove-unused-brs.txt')
-rw-r--r--test/passes/remove-unused-brs.txt48
1 files changed, 24 insertions, 24 deletions
diff --git a/test/passes/remove-unused-brs.txt b/test/passes/remove-unused-brs.txt
index ce5aee59a..62643ae00 100644
--- a/test/passes/remove-unused-brs.txt
+++ b/test/passes/remove-unused-brs.txt
@@ -145,7 +145,7 @@
)
)
(func $b13 (type $2) (result i32)
- (block $topmost i32
+ (block $topmost (result i32)
(if
(i32.const 1)
(block $block1
@@ -172,13 +172,13 @@
)
)
(func $b14 (type $2) (result i32)
- (block $topmost i32
- (if i32
+ (block $topmost (result i32)
+ (if (result i32)
(i32.const 1)
- (block $block1 i32
+ (block $block1 (result i32)
(i32.const 12)
)
- (block $block3 i32
+ (block $block3 (result i32)
(i32.const 27)
)
)
@@ -285,8 +285,8 @@
)
)
(func $ret-value (type $2) (result i32)
- (block $block0 i32
- (block $block1 i32
+ (block $block0 (result i32)
+ (block $block1 (result i32)
(i32.const 1)
)
)
@@ -345,7 +345,7 @@
)
)
(if
- (block $a17 i32
+ (block $a17 (result i32)
(i32.const 0)
)
(block $a18
@@ -409,7 +409,7 @@
(i32.const 1)
)
)
- (block $do-once$028 i32
+ (block $do-once$028 (result i32)
(if
(tee_local $x
(i32.const 1)
@@ -628,7 +628,7 @@
(block
(call $loops)
(drop
- (block $out2 i32
+ (block $out2 (result i32)
(i32.const 1)
)
)
@@ -701,7 +701,7 @@
)
)
(func $br_if_in_block (type $2) (result i32)
- (block $outval i32
+ (block $outval (result i32)
(block $in
(br_if $in
(i32.const 1)
@@ -727,7 +727,7 @@
(i32.const 6)
)
)
- (if i32
+ (if (result i32)
(i32.const 6)
(br $outval
(i32.const 7)
@@ -738,8 +738,8 @@
)
(func $threading (type $1)
(drop
- (block $value-out i32
- (block $value-in i32
+ (block $value-out (result i32)
+ (block $value-in (result i32)
(block $out
(block $in
(br_if $out
@@ -773,11 +773,11 @@
(func $if-to-br_if-conflict (type $3) (param $x i32) (param $y i32) (result i32)
(block $leave
(set_local $y
- (block $out i32
+ (block $out (result i32)
(if
(get_local $x)
(br $out
- (block $block i32
+ (block $block (result i32)
(set_local $x
(i32.const 0)
)
@@ -800,14 +800,14 @@
(func $if-to-br_if-conflict2 (type $3) (param $x i32) (param $y i32) (result i32)
(block $leave
(set_local $y
- (block $out i32
+ (block $out (result i32)
(if
(get_local $x)
(br_if $leave
(i32.const 1)
)
(br $out
- (block $block i32
+ (block $block (result i32)
(set_local $x
(i32.const 0)
)
@@ -827,11 +827,11 @@
(func $if-to-br_if-value-sideeffect (type $3) (param $x i32) (param $y i32) (result i32)
(block $leave
(set_local $y
- (block $out i32
+ (block $out (result i32)
(if
(get_local $x)
(br $out
- (block $block i32
+ (block $block (result i32)
(drop
(call $if-to-br_if-value-sideeffect
(i32.const 0)
@@ -938,11 +938,11 @@
)
)
(func $loop-if (type $2) (result i32)
- (block $outer i32
- (loop $typed i32
- (if i32
+ (block $outer (result i32)
+ (loop $typed (result i32)
+ (if (result i32)
(i32.const 2)
- (block $block i32
+ (block $block (result i32)
(drop
(call $loop-if)
)