summaryrefslogtreecommitdiff
path: root/test/torture-s/loop-2b.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/loop-2b.c.s')
-rw-r--r--test/torture-s/loop-2b.c.s16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/torture-s/loop-2b.c.s b/test/torture-s/loop-2b.c.s
index 503c8e83b..0a2c394a9 100644
--- a/test/torture-s/loop-2b.c.s
+++ b/test/torture-s/loop-2b.c.s
@@ -9,10 +9,10 @@ f: # @f
.result i32
.local i32, i32
# BB#0: # %entry
- block .LBB0_4
+ block
i32.const $push0=, 2147483647
i32.eq $push1=, $0, $pop0
- br_if $pop1, .LBB0_4
+ br_if $pop1, 0 # 0: down to label0
# BB#1: # %for.body.preheader
i32.const $push4=, a
i32.const $push2=, 2
@@ -22,22 +22,25 @@ f: # @f
i32.sub $1=, $pop5, $0
.LBB0_2: # %for.body
# =>This Inner Loop Header: Depth=1
- loop .LBB0_4
+ loop # label1:
i32.const $push6=, -2
i32.store $discard=, 0($2), $pop6
copy_local $0=, $1
i32.const $push7=, 2147483645
i32.eq $push8=, $0, $pop7
- br_if $pop8, .LBB0_4
+ br_if $pop8, 1 # 1: down to label2
# BB#3: # %for.body
# in Loop: Header=BB0_2 Depth=1
i32.const $push9=, 4
i32.add $2=, $2, $pop9
i32.const $push10=, -1
i32.add $1=, $0, $pop10
- br_if $0, .LBB0_2
+ br_if $0, 0 # 0: up to label1
.LBB0_4: # %for.end
+ end_loop # label2:
+ end_block # label0:
return $0
+ .endfunc
.Lfunc_end0:
.size f, .Lfunc_end0-f
@@ -55,6 +58,7 @@ main: # @main
i32.store $discard=, a+4($0), $pop1
call exit@FUNCTION, $0
unreachable
+ .endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
@@ -68,5 +72,5 @@ a:
.size a, 8
- .ident "clang version 3.8.0 "
+ .ident "clang version 3.9.0 "
.section ".note.GNU-stack","",@progbits