diff options
Diffstat (limited to 'test/torture-s/string-opt-17.c.s')
-rw-r--r-- | test/torture-s/string-opt-17.c.s | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/test/torture-s/string-opt-17.c.s b/test/torture-s/string-opt-17.c.s index 713f1e4e1..d7ab81cf0 100644 --- a/test/torture-s/string-opt-17.c.s +++ b/test/torture-s/string-opt-17.c.s @@ -14,6 +14,7 @@ test1: # @test1 i32.const $push0=, 1 i32.add $push1=, $1, $pop0 return $pop1 + .endfunc .Lfunc_end0: .size test1, .Lfunc_end0-test1 @@ -26,18 +27,20 @@ check2: # @check2 .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, check2.r($0) i32.const $push1=, 5 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push3=, 6 i32.store $push4=, check2.r($0), $pop3 return $pop4 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable + .endfunc .Lfunc_end1: .size check2, .Lfunc_end1-check2 @@ -50,11 +53,11 @@ test2: # @test2 .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB2_2 + block i32.load $push0=, check2.r($1) i32.const $push1=, 5 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB2_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %check2.exit i32.const $push3=, 6 i32.store $discard=, check2.r($1), $pop3 @@ -73,8 +76,10 @@ test2: # @test2 i32.store8 $discard=, 0($0), $pop12 return .LBB2_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable + .endfunc .Lfunc_end2: .size test2, .Lfunc_end2-test2 @@ -112,36 +117,40 @@ main: # @main i32.const $push11=, 3 i32.const $5=, 4 i32.add $5=, $6, $5 - block .LBB3_6 + block i32.call $push12=, memcmp@FUNCTION, $5, $pop10, $pop11 - br_if $pop12, .LBB3_6 + br_if $pop12, 0 # 0: down to label2 # BB#1: # %if.end - block .LBB3_5 + block i32.load $push13=, check2.r($0) i32.const $push14=, 5 i32.ne $push15=, $pop13, $pop14 - br_if $pop15, .LBB3_5 + br_if $pop15, 0 # 0: down to label3 # BB#2: # %test2.exit - block .LBB3_4 + block i32.const $push16=, 6 i32.store $discard=, check2.r($0), $pop16 i32.const $push17=, 8020322 i32.store $discard=, 4($6), $pop17 i32.const $push18=, 0 i32.eq $push19=, $1, $pop18 - br_if $pop19, .LBB3_4 + br_if $pop19, 0 # 0: down to label4 # BB#3: # %if.end8 call exit@FUNCTION, $0 unreachable .LBB3_4: # %if.then7 + end_block # label4: call abort@FUNCTION unreachable .LBB3_5: # %if.then.i.i + end_block # label3: call abort@FUNCTION unreachable .LBB3_6: # %if.then + end_block # label2: call abort@FUNCTION unreachable + .endfunc .Lfunc_end3: .size main, .Lfunc_end3-main @@ -170,5 +179,5 @@ check2.r: .size .L.str.2, 4 - .ident "clang version 3.8.0 " + .ident "clang version 3.9.0 " .section ".note.GNU-stack","",@progbits |