summaryrefslogtreecommitdiff
path: root/test/torture-s/loop-12.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/loop-12.c.s')
-rw-r--r--test/torture-s/loop-12.c.s24
1 files changed, 14 insertions, 10 deletions
diff --git a/test/torture-s/loop-12.c.s b/test/torture-s/loop-12.c.s
index 256bfdb47..4f1e709c8 100644
--- a/test/torture-s/loop-12.c.s
+++ b/test/torture-s/loop-12.c.s
@@ -12,8 +12,8 @@ foo: # @foo
i64.const $2=, 562949961809921
.LBB0_1: # %while.cond
# =>This Inner Loop Header: Depth=1
- loop .LBB0_5
- block .LBB0_4
+ loop # label0:
+ block
i32.load8_u $push2=, 0($3)
i32.const $push3=, -10
i32.add $push0=, $pop2, $pop3
@@ -21,7 +21,7 @@ foo: # @foo
i32.and $1=, $pop0, $pop4
i32.const $push5=, 49
i32.gt_u $push6=, $1, $pop5
- br_if $pop6, .LBB0_4
+ br_if $pop6, 0 # 0: down to label2
# BB#2: # %is_end_of_statement.exit
# in Loop: Header=BB0_1 Depth=1
i64.extend_u/i32 $push7=, $1
@@ -31,16 +31,18 @@ foo: # @foo
i32.wrap/i64 $push11=, $pop10
i32.const $push13=, 0
i32.eq $push14=, $pop11, $pop13
- br_if $pop14, .LBB0_4
+ br_if $pop14, 0 # 0: down to label2
# BB#3: # %while.end
return
.LBB0_4: # %while.body
# in Loop: Header=BB0_1 Depth=1
+ end_block # label2:
i32.const $push12=, 1
i32.add $push1=, $3, $pop12
i32.store $3=, p($0), $pop1
- br .LBB0_1
+ br 0 # 0: up to label0
.LBB0_5:
+ end_loop # label1:
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
@@ -56,10 +58,10 @@ main: # @main
i32.const $1=, .L.str
.LBB1_1: # %while.cond.i
# =>This Inner Loop Header: Depth=1
- loop .LBB1_5
+ loop # label3:
i32.const $0=, 0
i32.store $discard=, p($0), $1
- block .LBB1_4
+ block
i32.load8_u $push1=, 0($1)
i32.const $push2=, -10
i32.add $push0=, $pop1, $pop2
@@ -67,7 +69,7 @@ main: # @main
i32.and $2=, $pop0, $pop3
i32.const $push4=, 49
i32.gt_u $push5=, $2, $pop4
- br_if $pop5, .LBB1_4
+ br_if $pop5, 0 # 0: down to label5
# BB#2: # %is_end_of_statement.exit.i
# in Loop: Header=BB1_1 Depth=1
i64.extend_u/i32 $push6=, $2
@@ -77,15 +79,17 @@ main: # @main
i32.wrap/i64 $push10=, $pop9
i32.const $push12=, 0
i32.eq $push13=, $pop10, $pop12
- br_if $pop13, .LBB1_4
+ br_if $pop13, 0 # 0: down to label5
# BB#3: # %foo.exit
return $0
.LBB1_4: # %while.body.i
# in Loop: Header=BB1_1 Depth=1
+ end_block # label5:
i32.const $push11=, 1
i32.add $1=, $1, $pop11
- br .LBB1_1
+ br 0 # 0: up to label3
.LBB1_5:
+ end_loop # label4:
.Lfunc_end1:
.size main, .Lfunc_end1-main