diff options
Diffstat (limited to 'test/torture-s/loop-2.c.s')
-rw-r--r-- | test/torture-s/loop-2.c.s | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/torture-s/loop-2.c.s b/test/torture-s/loop-2.c.s index 28ba25ee8..cdea14e11 100644 --- a/test/torture-s/loop-2.c.s +++ b/test/torture-s/loop-2.c.s @@ -11,13 +11,13 @@ f: # @f # BB#0: # %entry i32.const $2=, 0 i32.const $1=, a - block .LBB0_2 + block i32.const $push5=, 0 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB0_2 + br_if $pop6, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.const $push0=, -2 i32.add $push1=, $2, $pop0 i32.store $discard=, 0($1), $pop1 @@ -26,9 +26,12 @@ f: # @f i32.const $push3=, 4 i32.add $1=, $1, $pop3 i32.ne $push4=, $0, $2 - br_if $pop4, .LBB0_1 + br_if $pop4, 0 # 0: up to label1 .LBB0_2: # %for.end + end_loop # label2: + end_block # label0: return $2 + .endfunc .Lfunc_end0: .size f, .Lfunc_end0-f @@ -47,6 +50,7 @@ main: # @main i32.store $discard=, a+4($0), $pop1 call exit@FUNCTION, $0 unreachable + .endfunc .Lfunc_end1: .size main, .Lfunc_end1-main @@ -60,5 +64,5 @@ a: .size a, 8 - .ident "clang version 3.8.0 " + .ident "clang version 3.9.0 " .section ".note.GNU-stack","",@progbits |