diff options
Diffstat (limited to 'test/torture-s/20100827-1.c.s')
-rw-r--r-- | test/torture-s/20100827-1.c.s | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/test/torture-s/20100827-1.c.s b/test/torture-s/20100827-1.c.s index 1ae3255be..2b68140ec 100644 --- a/test/torture-s/20100827-1.c.s +++ b/test/torture-s/20100827-1.c.s @@ -10,31 +10,34 @@ foo: # @foo .local i32, i32, i32 # BB#0: # %entry i32.const $3=, 0 - block .LBB0_4 + block i32.load8_u $push0=, 0($0) i32.const $push3=, 0 i32.eq $push4=, $pop0, $pop3 - br_if $pop4, .LBB0_4 + br_if $pop4, 0 # 0: down to label0 .LBB0_1: # %if.end # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.add $1=, $0, $3 i32.const $push5=, 0 i32.eq $push6=, $1, $pop5 - br_if $pop6, .LBB0_3 + br_if $pop6, 1 # 1: down to label2 # BB#2: # %if.end5 # in Loop: Header=BB0_1 Depth=1 i32.const $2=, 1 i32.add $3=, $3, $2 i32.add $push1=, $1, $2 i32.load8_u $push2=, 0($pop1) - br_if $pop2, .LBB0_1 - br .LBB0_4 + br_if $pop2, 0 # 0: up to label1 + br 2 # 2: down to label0 .LBB0_3: # %if.then4 + end_loop # label2: call abort@FUNCTION unreachable .LBB0_4: # %do.end + end_block # label0: return $3 + .endfunc .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -45,18 +48,20 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, .L.str i32.call $push1=, foo@FUNCTION, $pop0 i32.const $push2=, 1 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label3 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB1_2: # %if.then + end_block # label3: call abort@FUNCTION unreachable + .endfunc .Lfunc_end1: .size main, .Lfunc_end1-main @@ -67,5 +72,5 @@ main: # @main .size .L.str, 2 - .ident "clang version 3.8.0 " + .ident "clang version 3.9.0 " .section ".note.GNU-stack","",@progbits |