summaryrefslogtreecommitdiff
path: root/test/torture-s/pr59358.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr59358.c.s')
-rw-r--r--test/torture-s/pr59358.c.s52
1 files changed, 31 insertions, 21 deletions
diff --git a/test/torture-s/pr59358.c.s b/test/torture-s/pr59358.c.s
index d755660fb..c53cd030c 100644
--- a/test/torture-s/pr59358.c.s
+++ b/test/torture-s/pr59358.c.s
@@ -11,24 +11,27 @@ foo: # @foo
# BB#0: # %entry
i32.load $2=, 0($0)
copy_local $0=, $2
- block .LBB0_3
+ block
i32.const $push0=, 16
i32.gt_s $push1=, $1, $pop0
- br_if $pop1, .LBB0_3
+ br_if $pop1, 0 # 0: down to label0
# BB#1: # %entry
copy_local $0=, $2
i32.ge_s $push2=, $2, $1
- br_if $pop2, .LBB0_3
+ br_if $pop2, 0 # 0: down to label0
.LBB0_2: # %while.cond
# =>This Inner Loop Header: Depth=1
- loop .LBB0_3
+ loop # label1:
copy_local $0=, $2
i32.const $push4=, 1
i32.shl $2=, $0, $pop4
i32.lt_s $push3=, $0, $1
- br_if $pop3, .LBB0_2
+ br_if $pop3, 0 # 0: up to label1
.LBB0_3: # %if.end
+ end_loop # label2:
+ end_block # label0:
return $0
+ .endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
@@ -52,9 +55,9 @@ main: # @main
copy_local $1=, $0
.LBB1_1: # %for.body
# =>This Inner Loop Header: Depth=1
- block .LBB1_13
- block .LBB1_12
- loop .LBB1_11
+ block
+ block
+ loop # label5:
i32.const $5=, 16
i32.const $push1=, -1
i32.add $3=, $1, $pop1
@@ -63,33 +66,35 @@ main: # @main
i32.call $4=, foo@FUNCTION, $11, $5
i32.const $6=, 8
copy_local $7=, $0
- block .LBB1_5
+ block
i32.const $push2=, -8
i32.and $push3=, $3, $pop2
i32.eq $push4=, $pop3, $6
- br_if $pop4, .LBB1_5
+ br_if $pop4, 0 # 0: down to label7
# BB#2: # %if.else
# in Loop: Header=BB1_1 Depth=1
i32.const $7=, 4
- block .LBB1_4
+ block
i32.const $push5=, -4
i32.and $push6=, $3, $pop5
i32.ne $push7=, $pop6, $7
- br_if $pop7, .LBB1_4
+ br_if $pop7, 0 # 0: down to label8
# BB#3: # %if.then6
# in Loop: Header=BB1_1 Depth=1
i32.const $push10=, 2
i32.shl $7=, $2, $pop10
- br .LBB1_5
+ br 1 # 1: down to label7
.LBB1_4: # %if.else10
# in Loop: Header=BB1_1 Depth=1
+ end_block # label8:
i32.eq $push8=, $1, $7
i32.const $push9=, 24
i32.select $7=, $pop8, $pop9, $5
.LBB1_5: # %if.end15
# in Loop: Header=BB1_1 Depth=1
+ end_block # label7:
i32.ne $push11=, $4, $7
- br_if $pop11, .LBB1_13
+ br_if $pop11, 3 # 3: down to label3
# BB#6: # %if.end18
# in Loop: Header=BB1_1 Depth=1
i32.const $push12=, 7
@@ -97,16 +102,16 @@ main: # @main
i32.add $12=, $13, $12
i32.call $5=, foo@FUNCTION, $12, $pop12
copy_local $7=, $2
- block .LBB1_9
+ block
i32.const $push13=, 6
i32.gt_s $push14=, $3, $pop13
- br_if $pop14, .LBB1_9
+ br_if $pop14, 0 # 0: down to label9
# BB#7: # %if.else22
# in Loop: Header=BB1_1 Depth=1
copy_local $7=, $0
i32.const $push15=, 3
i32.gt_s $push16=, $3, $pop15
- br_if $pop16, .LBB1_9
+ br_if $pop16, 0 # 0: down to label9
# BB#8: # %if.else28
# in Loop: Header=BB1_1 Depth=1
i32.const $push17=, 4
@@ -115,8 +120,9 @@ main: # @main
i32.select $7=, $pop18, $pop19, $6
.LBB1_9: # %if.end34
# in Loop: Header=BB1_1 Depth=1
+ end_block # label9:
i32.ne $push20=, $5, $7
- br_if $pop20, .LBB1_12
+ br_if $pop20, 2 # 2: down to label4
# BB#10: # %if.end37
# in Loop: Header=BB1_1 Depth=1
i32.const $push21=, 2
@@ -127,8 +133,9 @@ main: # @main
i32.add $1=, $7, $3
i32.const $push22=, 17
i32.lt_s $push23=, $7, $pop22
- br_if $pop23, .LBB1_1
-.LBB1_11: # %for.end
+ br_if $pop23, 0 # 0: up to label5
+# BB#11: # %for.end
+ end_loop # label6:
i32.const $push24=, 0
i32.const $10=, 16
i32.add $13=, $13, $10
@@ -136,14 +143,17 @@ main: # @main
i32.store $13=, 0($10), $13
return $pop24
.LBB1_12: # %if.then36
+ end_block # label4:
call abort@FUNCTION
unreachable
.LBB1_13: # %if.then17
+ end_block # label3:
call abort@FUNCTION
unreachable
+ .endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
- .ident "clang version 3.8.0 "
+ .ident "clang version 3.9.0 "
.section ".note.GNU-stack","",@progbits