diff options
Diffstat (limited to 'test/torture-s/20010409-1.c.s')
-rw-r--r-- | test/torture-s/20010409-1.c.s | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/test/torture-s/20010409-1.c.s b/test/torture-s/20010409-1.c.s index 095546304..5a3fb49a2 100644 --- a/test/torture-s/20010409-1.c.s +++ b/test/torture-s/20010409-1.c.s @@ -14,6 +14,7 @@ foo: # @foo i32.add $push3=, $pop0, $pop2 i32.store $discard=, c($pop4), $pop3 return + .endfunc .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -25,15 +26,17 @@ bar: # @bar .param i32, i32, i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB1_2 - br_if $1, .LBB1_2 + block + br_if $1, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push0=, 0 call exit@FUNCTION, $pop0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable + .endfunc .Lfunc_end1: .size bar, .Lfunc_end1-bar @@ -47,16 +50,18 @@ test: # @test # BB#0: # %entry i32.const $2=, 0 i32.load $3=, b($2) - block .LBB2_2 + block i32.const $push0=, 5000 i32.store $discard=, c($2), $pop0 - br_if $3, .LBB2_2 + br_if $3, 0 # 0: down to label1 # BB#1: # %if.then.i call abort@FUNCTION unreachable .LBB2_2: # %if.end.i + end_block # label1: call exit@FUNCTION, $2 unreachable + .endfunc .Lfunc_end2: .size test, .Lfunc_end2-test @@ -71,18 +76,20 @@ main: # @main i32.const $0=, 0 i32.store $discard=, d+4($0), $0 i32.load $1=, b($0) - block .LBB3_2 + block i32.const $push0=, a i32.store $discard=, d($0), $pop0 i32.const $push1=, 5000 i32.store $discard=, c($0), $pop1 - br_if $1, .LBB3_2 + br_if $1, 0 # 0: down to label2 # BB#1: # %if.then.i.i call abort@FUNCTION unreachable .LBB3_2: # %if.end.i.i + end_block # label2: call exit@FUNCTION, $0 unreachable + .endfunc .Lfunc_end3: .size main, .Lfunc_end3-main @@ -123,5 +130,5 @@ a: .size a, 4 - .ident "clang version 3.8.0 " + .ident "clang version 3.9.0 " .section ".note.GNU-stack","",@progbits |