diff options
Diffstat (limited to 'test/torture-s/string-opt-18.c.s')
-rw-r--r-- | test/torture-s/string-opt-18.c.s | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/test/torture-s/string-opt-18.c.s b/test/torture-s/string-opt-18.c.s index bf4f12483..7628ffdbd 100644 --- a/test/torture-s/string-opt-18.c.s +++ b/test/torture-s/string-opt-18.c.s @@ -8,6 +8,7 @@ test1: # @test1 .param i32 # BB#0: # %entry return + .endfunc .Lfunc_end0: .size test1, .Lfunc_end0-test1 @@ -20,16 +21,18 @@ test2: # @test2 .local i32 # BB#0: # %entry i32.const $1=, 8 - block .LBB1_2 + block i32.call $push0=, mempcpy@FUNCTION, $0, $0, $1 i32.add $push1=, $0, $1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable + .endfunc .Lfunc_end1: .size test2, .Lfunc_end1-test2 @@ -41,6 +44,7 @@ test3: # @test3 .param i32 # BB#0: # %entry return + .endfunc .Lfunc_end2: .size test3, .Lfunc_end2-test3 @@ -52,6 +56,7 @@ test4: # @test4 .param i32 # BB#0: # %entry return + .endfunc .Lfunc_end3: .size test4, .Lfunc_end3-test4 @@ -63,6 +68,7 @@ test5: # @test5 .param i32 # BB#0: # %entry return + .endfunc .Lfunc_end4: .size test5, .Lfunc_end4-test5 @@ -74,6 +80,7 @@ test6: # @test6 .param i32 # BB#0: # %entry return + .endfunc .Lfunc_end5: .size test6, .Lfunc_end5-test6 @@ -85,6 +92,7 @@ test7: # @test7 .param i32 # BB#0: # %entry return + .endfunc .Lfunc_end6: .size test7, .Lfunc_end6-test7 @@ -110,10 +118,10 @@ main: # @main i32.call $push0=, mempcpy@FUNCTION, $4, $5, $0 i32.const $6=, 6 i32.add $6=, $7, $6 - block .LBB7_2 + block i32.add $push1=, $6, $0 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB7_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %test2.exit i32.const $push3=, 0 i32.const $3=, 16 @@ -122,11 +130,13 @@ main: # @main i32.store $7=, 0($3), $7 return $pop3 .LBB7_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable + .endfunc .Lfunc_end7: .size main, .Lfunc_end7-main - .ident "clang version 3.8.0 " + .ident "clang version 3.9.0 " .section ".note.GNU-stack","",@progbits |