summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/dot_s/basics.s23
-rw-r--r--test/dot_s/basics.wast16
2 files changed, 20 insertions, 19 deletions
diff --git a/test/dot_s/basics.s b/test/dot_s/basics.s
index a37678ff7..a47765778 100644
--- a/test/dot_s/basics.s
+++ b/test/dot_s/basics.s
@@ -18,12 +18,12 @@ main: # @main
i32.sub $push8=, $0, $pop7
i32.const $push9=, 1
i32.ne $push10=, $pop8, $pop9
- block .LBB0_5
- block .LBB0_4
- br_if $pop10, .LBB0_4
+ block
+ block
+ br_if $pop10, 0
.LBB0_1: # %.preheader
# =>This Inner Loop Header: Depth=1
- loop .LBB0_4
+ loop
i32.const $push12=, 10
i32.gt_s $push13=, $0, $pop12
i32.add $0=, $pop13, $0
@@ -31,24 +31,25 @@ main: # @main
i32.rem_s $push15=, $0, $pop14
i32.const $push16=, 3
i32.ne $push17=, $pop15, $pop16
- block .LBB0_3
- br_if $pop17, .LBB0_3
+ block
+ br_if $pop17, 0
# BB#2: # in Loop: Header=.LBB0_1 Depth=1
i32.const $push18=, 111
i32.rem_s $push19=, $0, $pop18
i32.add $0=, $pop19, $0
-.LBB0_3: # in Loop: Header=.LBB0_1 Depth=1
+ end_block
i32.const $push20=, 7
i32.rem_s $push21=, $0, $pop20
i32.const $push22=, 0
i32.eq $push23=, $pop21, $pop22
- br_if $pop23, .LBB0_5
- br .LBB0_1
-.LBB0_4:
+ br_if $pop23, 2
+ br 0
+ end_loop
+ end_block
i32.const $push11=, -12
i32.add $0=, $0, $pop11
i32.const $discard=, main # just take address for testing
-.LBB0_5: # %.loopexit
+ end_block
return $0
.Lfunc_end0:
.size main, .Lfunc_end0-main
diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast
index b73f6c456..a81cfd8a9 100644
--- a/test/dot_s/basics.wast
+++ b/test/dot_s/basics.wast
@@ -10,8 +10,8 @@
(call_import $puts
(i32.const 16)
)
- (block $.LBB0_5
- (block $.LBB0_4
+ (block $label$0
+ (block $label$1
(br_if
(i32.ne
(i32.sub
@@ -32,9 +32,9 @@
)
(i32.const 1)
)
- $.LBB0_4
+ $label$1
)
- (loop $.LBB0_1
+ (loop $label$3 $label$2
(block
(set_local $$0
(i32.add
@@ -45,7 +45,7 @@
(get_local $$0)
)
)
- (block $.LBB0_3
+ (block $label$4
(br_if
(i32.ne
(i32.rem_s
@@ -54,7 +54,7 @@
)
(i32.const 3)
)
- $.LBB0_3
+ $label$4
)
(set_local $$0
(i32.add
@@ -74,9 +74,9 @@
)
(i32.const 0)
)
- $.LBB0_5
+ $label$1
)
- (br $.LBB0_1)
+ (br $label$2)
)
)
)