summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-brs.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/remove-unused-brs.wast')
-rw-r--r--test/passes/remove-unused-brs.wast18
1 files changed, 11 insertions, 7 deletions
diff --git a/test/passes/remove-unused-brs.wast b/test/passes/remove-unused-brs.wast
index ddf5e2fa7..2598a45f4 100644
--- a/test/passes/remove-unused-brs.wast
+++ b/test/passes/remove-unused-brs.wast
@@ -46,35 +46,37 @@
)
(func $b6 (param $i1 i32)
(block $topmost
- (br_if (i32.const 1) $topmost)
+ (br_if $topmost (i32.const 1))
)
)
(func $b7 (param $i1 i32)
(block $topmost
- (br_if (i32.const 1) $topmost
+ (br_if $topmost
(i32.const 0)
+ (i32.const 1)
)
)
)
(func $b8 (param $i1 i32)
(block $topmost
(block $inner
- (br_if (i32.const 1) $topmost)
+ (br_if $topmost (i32.const 1))
)
)
)
(func $b9 (param $i1 i32)
(block $topmost
(block $inner
- (br_if (i32.const 1) $inner)
+ (br_if $topmost (i32.const 1))
)
)
)
(func $b10 (param $i1 i32)
(block $topmost
(block $inner
- (br_if (i32.const 1) $topmost
+ (br_if $topmost
(i32.const 0)
+ (i32.const 1)
)
)
)
@@ -82,8 +84,9 @@
(func $b11 (param $i1 i32)
(block $topmost
(block $inner
- (br_if (i32.const 1) $inner
+ (br_if $inner
(i32.const 0)
+ (i32.const 1)
)
)
)
@@ -111,7 +114,8 @@
(if_else (i32.const 1)
(block
(i32.const 12)
- (br_if (i32.const 1) $topmost
+ (br_if $topmost
+ (i32.const 1)
(i32.const 1)
)
)