diff options
Diffstat (limited to 'test/torture-s/string-opt-5.c.s')
-rw-r--r-- | test/torture-s/string-opt-5.c.s | 120 |
1 files changed, 71 insertions, 49 deletions
diff --git a/test/torture-s/string-opt-5.c.s b/test/torture-s/string-opt-5.c.s index e8dd4c028..d276e7c4e 100644 --- a/test/torture-s/string-opt-5.c.s +++ b/test/torture-s/string-opt-5.c.s @@ -18,9 +18,9 @@ main: # @main i32.load $0=, bar($16) i32.call $8=, strlen@FUNCTION, $0 i32.const $3=, 8 - block .LBB0_48 + block i32.ne $push5=, $8, $3 - br_if $pop5, .LBB0_48 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.end i32.load $1=, x($16) i32.const $4=, 1 @@ -31,14 +31,14 @@ main: # @main i32.add $push7=, $0, $pop6 i32.call $9=, strlen@FUNCTION, $pop7 i32.const $6=, 6 - block .LBB0_47 + block i32.ne $push8=, $9, $6 - br_if $pop8, .LBB0_47 + br_if $pop8, 0 # 0: down to label1 # BB#2: # %if.end4 i32.const $7=, 7 - block .LBB0_46 + block i32.ne $push9=, $8, $7 - br_if $pop9, .LBB0_46 + br_if $pop9, 0 # 0: down to label2 # BB#3: # %if.end16 i32.const $8=, 3 i32.add $push10=, $1, $8 @@ -48,25 +48,25 @@ main: # @main i32.add $push12=, $9, $pop11 i32.call $13=, strlen@FUNCTION, $pop12 i32.const $10=, 10 - block .LBB0_45 + block i32.ne $push13=, $13, $10 - br_if $pop13, .LBB0_45 + br_if $pop13, 0 # 0: down to label3 # BB#4: # %if.end26 - block .LBB0_44 + block i32.const $push14=, -3 i32.add $push1=, $1, $pop14 i32.store $13=, x($16), $pop1 i32.add $push15=, $9, $13 i32.const $push16=, .L.str.2 i32.call $push17=, strcmp@FUNCTION, $pop15, $pop16 - br_if $pop17, .LBB0_44 + br_if $pop17, 0 # 0: down to label4 # BB#5: # %if.end33 - block .LBB0_43 + block i32.call $push18=, strcmp@FUNCTION, $9, $0 i32.ge_s $push19=, $pop18, $16 - br_if $pop19, .LBB0_43 + br_if $pop19, 0 # 0: down to label5 # BB#6: # %if.end37 - block .LBB0_42 + block i32.const $push20=, -2 i32.add $push2=, $1, $pop20 i32.store $2=, x($16), $pop2 @@ -74,11 +74,11 @@ main: # @main i32.add $push22=, $0, $pop21 i32.call $push23=, strcmp@FUNCTION, $9, $pop22 i32.ge_s $push24=, $pop23, $16 - br_if $pop24, .LBB0_42 + br_if $pop24, 0 # 0: down to label6 # BB#7: # %if.end47 i32.const $11=, -1 i32.const $12=, 108 - block .LBB0_41 + block i32.add $push3=, $1, $11 i32.store $19=, x($16), $pop3 i32.and $push25=, $2, $7 @@ -86,49 +86,49 @@ main: # @main i32.call $push27=, strchr@FUNCTION, $pop26, $12 i32.const $push28=, .L.str.1+9 i32.ne $push29=, $pop27, $pop28 - br_if $pop29, .LBB0_41 + br_if $pop29, 0 # 0: down to label7 # BB#8: # %if.end58 i32.const $13=, 111 i32.call $2=, strchr@FUNCTION, $0, $13 i32.const $14=, 4 - block .LBB0_40 + block i32.add $push30=, $0, $14 i32.ne $push31=, $2, $pop30 - br_if $pop31, .LBB0_40 + br_if $pop31, 0 # 0: down to label8 # BB#9: # %if.end63 - block .LBB0_39 + block i32.call $push32=, strlen@FUNCTION, $0 i32.ne $push33=, $pop32, $3 - br_if $pop33, .LBB0_39 + br_if $pop33, 0 # 0: down to label9 # BB#10: # %if.end68 - block .LBB0_38 + block i32.const $push34=, 120 i32.call $push35=, strrchr@FUNCTION, $0, $pop34 - br_if $pop35, .LBB0_38 + br_if $pop35, 0 # 0: down to label10 # BB#11: # %if.end72 - block .LBB0_37 + block i32.call $push36=, strrchr@FUNCTION, $0, $13 i32.ne $push37=, $pop36, $2 - br_if $pop37, .LBB0_37 + br_if $pop37, 0 # 0: down to label11 # BB#12: # %if.end77 i32.load $push40=, y($16) i32.add $push4=, $pop40, $11 i32.store $0=, y($16), $pop4 i32.store $discard=, x($16), $1 - block .LBB0_36 + block i32.and $push38=, $19, $4 i32.add $push39=, $9, $pop38 i32.const $push42=, .L.str.3 i32.and $push41=, $0, $4 i32.add $push43=, $pop42, $pop41 i32.call $push44=, strcmp@FUNCTION, $pop39, $pop43 - br_if $pop44, .LBB0_36 + br_if $pop44, 0 # 0: down to label12 # BB#13: # %if.end86 - block .LBB0_35 - br_if $0, .LBB0_35 + block + br_if $0, 0 # 0: down to label13 # BB#14: # %if.end86 i32.ne $push45=, $1, $6 - br_if $pop45, .LBB0_35 + br_if $pop45, 0 # 0: down to label13 # BB#15: # %if.end90 i32.const $24=, 0 i32.add $24=, $39, $24 @@ -155,10 +155,10 @@ main: # @main i32.const $push47=, 32 i32.store8 $15=, 0($pop46), $pop47 i32.store $17=, x($16), $6 - block .LBB0_34 + block i32.const $push53=, .L.str.4 i32.call $push54=, strcmp@FUNCTION, $0, $pop53 - br_if $pop54, .LBB0_34 + br_if $pop54, 0 # 0: down to label14 # BB#16: # %if.end108 i32.const $push57=, 56 i32.const $28=, 0 @@ -197,26 +197,26 @@ main: # @main i64.store $18=, 0($39), $pop63 i32.store $6=, x($16), $7 i32.store $7=, y($16), $5 - block .LBB0_33 + block i32.const $push64=, .L.str.5+1 i32.call $push65=, strncpy@FUNCTION, $0, $pop64, $10 i32.ne $push66=, $pop65, $0 - br_if $pop66, .LBB0_33 + br_if $pop66, 0 # 0: down to label15 # BB#17: # %if.end108 i32.load $push55=, x($16) i32.ne $push67=, $pop55, $6 - br_if $pop67, .LBB0_33 + br_if $pop67, 0 # 0: down to label15 # BB#18: # %if.end108 i32.load $push56=, y($16) i32.ne $push68=, $pop56, $7 - br_if $pop68, .LBB0_33 + br_if $pop68, 0 # 0: down to label15 # BB#19: # %lor.lhs.false125 i32.const $push69=, .L.str.6 i32.const $push70=, 12 i32.const $35=, 0 i32.add $35=, $39, $35 i32.call $push71=, memcmp@FUNCTION, $35, $pop69, $pop70 - br_if $pop71, .LBB0_33 + br_if $pop71, 0 # 0: down to label15 # BB#20: # %if.end130 i64.store $push72=, 0($9), $18 i64.store $push73=, 0($13), $pop72 @@ -232,19 +232,19 @@ main: # @main i32.call $push80=, strncpy@FUNCTION, $36, $pop79, $3 i32.const $37=, 0 i32.add $37=, $39, $37 - block .LBB0_32 + block i32.ne $push81=, $pop80, $37 - br_if $pop81, .LBB0_32 + br_if $pop81, 0 # 0: down to label16 # BB#21: # %lor.lhs.false136 i32.const $push82=, .L.str.8 i32.const $push83=, 9 i32.const $38=, 0 i32.add $38=, $39, $38 i32.call $push84=, memcmp@FUNCTION, $38, $pop82, $pop83 - br_if $pop84, .LBB0_32 + br_if $pop84, 0 # 0: down to label16 # BB#22: # %if.end141 i32.const $9=, buf - block .LBB0_31 + block i32.const $push85=, 64 call memset@FUNCTION, $9, $15, $pop85 i32.load $push87=, y($16) @@ -255,11 +255,11 @@ main: # @main i32.const $push89=, 33 call memset@FUNCTION, $9, $pop89, $0 i32.ne $push90=, $0, $8 - br_if $pop90, .LBB0_31 + br_if $pop90, 0 # 0: down to label17 # BB#23: # %lor.lhs.false148 i32.const $push91=, .L.str.9 i32.call $push92=, memcmp@FUNCTION, $9, $pop91, $8 - br_if $pop92, .LBB0_31 + br_if $pop92, 0 # 0: down to label17 # BB#24: # %lor.lhs.false158 i64.const $push94=, 45 i64.store8 $18=, buf+3($16), $pop94 @@ -278,12 +278,12 @@ main: # @main i32.add $push100=, $0, $7 i64.store8 $discard=, 0($pop100), $18 i32.const $3=, 11 - block .LBB0_30 + block i32.add $push101=, $0, $1 i64.store8 $discard=, 0($pop101), $18 i32.const $push102=, .L.str.10 i32.call $push103=, memcmp@FUNCTION, $9, $pop102, $3 - br_if $pop103, .LBB0_30 + br_if $pop103, 0 # 0: down to label18 # BB#25: # %lor.lhs.false171 i32.store $discard=, y($16), $4 i32.store $9=, x($16), $3 @@ -295,11 +295,11 @@ main: # @main i32.add $push106=, $0, $1 i32.store8 $discard=, 0($pop106), $16 i32.store8 $discard=, buf+11($16), $16 - block .LBB0_29 + block i32.const $push108=, buf+8 i32.const $push107=, .L.str.11 i32.call $push109=, memcmp@FUNCTION, $pop108, $pop107, $6 - br_if $pop109, .LBB0_29 + br_if $pop109, 0 # 0: down to label19 # BB#26: # %lor.lhs.false180 i32.const $push110=, 15 i32.store $discard=, x($16), $pop110 @@ -309,11 +309,11 @@ main: # @main i32.store8 $discard=, buf+17($16), $16 i32.store8 $discard=, buf+16($16), $16 i32.store8 $discard=, buf+15($16), $16 - block .LBB0_28 + block i32.const $push112=, buf+10 i32.const $push111=, .L.str.12 i32.call $push113=, memcmp@FUNCTION, $pop112, $pop111, $9 - br_if $pop113, .LBB0_28 + br_if $pop113, 0 # 0: down to label20 # BB#27: # %if.end184 i32.const $23=, 64 i32.add $39=, $39, $23 @@ -321,68 +321,90 @@ main: # @main i32.store $39=, 0($23), $39 return $16 .LBB0_28: # %if.then183 + end_block # label20: call abort@FUNCTION unreachable .LBB0_29: # %if.then174 + end_block # label19: call abort@FUNCTION unreachable .LBB0_30: # %if.then161 + end_block # label18: call abort@FUNCTION unreachable .LBB0_31: # %if.then151 + end_block # label17: call abort@FUNCTION unreachable .LBB0_32: # %if.then140 + end_block # label16: call abort@FUNCTION unreachable .LBB0_33: # %if.then129 + end_block # label15: call abort@FUNCTION unreachable .LBB0_34: # %if.then107 + end_block # label14: call abort@FUNCTION unreachable .LBB0_35: # %if.then89 + end_block # label13: call abort@FUNCTION unreachable .LBB0_36: # %if.then85 + end_block # label12: call abort@FUNCTION unreachable .LBB0_37: # %if.then76 + end_block # label11: call abort@FUNCTION unreachable .LBB0_38: # %if.then71 + end_block # label10: call abort@FUNCTION unreachable .LBB0_39: # %if.then67 + end_block # label9: call abort@FUNCTION unreachable .LBB0_40: # %if.then62 + end_block # label8: call abort@FUNCTION unreachable .LBB0_41: # %if.then54 + end_block # label7: call abort@FUNCTION unreachable .LBB0_42: # %if.then43 + end_block # label6: call abort@FUNCTION unreachable .LBB0_43: # %if.then36 + end_block # label5: call abort@FUNCTION unreachable .LBB0_44: # %if.then29 + end_block # label4: call abort@FUNCTION unreachable .LBB0_45: # %if.then22 + end_block # label3: call abort@FUNCTION unreachable .LBB0_46: # %if.then6 + end_block # label2: call abort@FUNCTION unreachable .LBB0_47: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB0_48: # %if.then + end_block # label0: call abort@FUNCTION unreachable + .endfunc .Lfunc_end0: .size main, .Lfunc_end0-main @@ -496,5 +518,5 @@ buf: .size .L.str.12, 11 - .ident "clang version 3.8.0 " + .ident "clang version 3.9.0 " .section ".note.GNU-stack","",@progbits |