diff options
Diffstat (limited to 'test/torture-s/20041213-2.c.s')
-rw-r--r-- | test/torture-s/20041213-2.c.s | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/test/torture-s/20041213-2.c.s b/test/torture-s/20041213-2.c.s index a2eac5f50..2a2127e0c 100644 --- a/test/torture-s/20041213-2.c.s +++ b/test/torture-s/20041213-2.c.s @@ -10,41 +10,46 @@ foo: # @foo # BB#0: # %entry i32.const $3=, 1 i32.const $2=, 0 - block .LBB0_6 + block i32.const $push5=, 0 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB0_6 + br_if $pop6, 0 # 0: down to label0 .LBB0_1: # %for.cond1.preheader # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 - block .LBB0_4 - block .LBB0_3 + loop # label1: + block + block i32.ge_s $push0=, $2, $3 - br_if $pop0, .LBB0_3 + br_if $pop0, 0 # 0: down to label4 # BB#2: # %for.end.thread # in Loop: Header=BB0_1 Depth=1 i32.const $push2=, 1 i32.shl $push3=, $3, $pop2 i32.sub $1=, $pop3, $2 - br .LBB0_4 + br 1 # 1: down to label3 .LBB0_3: # %for.end # in Loop: Header=BB0_1 Depth=1 + end_block # label4: copy_local $1=, $3 i32.ne $push1=, $2, $3 - br_if $pop1, .LBB0_5 + br_if $pop1, 2 # 2: down to label2 .LBB0_4: # %for.cond # in Loop: Header=BB0_1 Depth=1 + end_block # label3: i32.const $push4=, -1 i32.add $0=, $0, $pop4 copy_local $2=, $3 copy_local $3=, $1 - br_if $0, .LBB0_1 - br .LBB0_6 + br_if $0, 0 # 0: up to label1 + br 2 # 2: down to label0 .LBB0_5: # %if.then + end_loop # label2: call abort@FUNCTION unreachable .LBB0_6: # %for.end7 + end_block # label0: return + .endfunc .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -60,9 +65,10 @@ main: # @main i32.const $push1=, 0 call exit@FUNCTION, $pop1 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 |