diff options
Diffstat (limited to 'test/torture-s/strcpy-1.c.s')
-rw-r--r-- | test/torture-s/strcpy-1.c.s | 261 |
1 files changed, 124 insertions, 137 deletions
diff --git a/test/torture-s/strcpy-1.c.s b/test/torture-s/strcpy-1.c.s index 78227f8e3..f01006dc5 100644 --- a/test/torture-s/strcpy-1.c.s +++ b/test/torture-s/strcpy-1.c.s @@ -15,13 +15,10 @@ main: # @main # Child Loop BB0_3 Depth 3 # Child Loop BB0_4 Depth 4 # Child Loop BB0_7 Depth 4 - # Child Loop BB0_10 Depth 4 + # Child Loop BB0_11 Depth 4 block block - block - block - block - loop # label5: + loop # label2: i32.const $push49=, u1 i32.add $1=, $0, $pop49 i32.const $2=, 0 @@ -31,8 +28,8 @@ main: # @main # Child Loop BB0_3 Depth 3 # Child Loop BB0_4 Depth 4 # Child Loop BB0_7 Depth 4 - # Child Loop BB0_10 Depth 4 - loop # label7: + # Child Loop BB0_11 Depth 4 + loop # label4: i32.const $push51=, u2 i32.add $3=, $2, $pop51 i32.const $push50=, 65 @@ -44,8 +41,8 @@ main: # @main # => This Loop Header: Depth=3 # Child Loop BB0_4 Depth 4 # Child Loop BB0_7 Depth 4 - # Child Loop BB0_10 Depth 4 - loop # label9: + # Child Loop BB0_11 Depth 4 + loop # label6: i32.const $push54=, u1 i32.const $push53=, 97 i32.const $push52=, 97 @@ -57,7 +54,7 @@ main: # @main # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop # label11: + loop # label8: i32.const $push60=, 65 i32.const $push59=, 24 i32.shl $push0=, $6, $pop59 @@ -71,16 +68,16 @@ main: # @main i32.add $6=, $pop4, $pop56 i32.const $push55=, 1 i32.add $8=, $8, $pop55 - br_if 0, $8 # 0: up to label11 + br_if 0, $8 # 0: up to label8 # BB#5: # %for.end # in Loop: Header=BB0_3 Depth=3 - end_loop # label12: + end_loop # label9: i32.add $push5=, $5, $2 i32.const $push61=, 0 i32.store8 $discard=, u2($pop5), $pop61 i32.call $push6=, strcpy@FUNCTION, $1, $3 i32.ne $push7=, $pop6, $1 - br_if 9, $pop7 # 9: down to label1 + br_if 6, $pop7 # 6: down to label1 # BB#6: # %for.cond21.preheader # in Loop: Header=BB0_3 Depth=3 i32.const $8=, 0 @@ -88,177 +85,167 @@ main: # @main block i32.const $push62=, 0 i32.le_s $push8=, $0, $pop62 - br_if 0, $pop8 # 0: down to label13 + br_if 0, $pop8 # 0: down to label10 .LBB0_7: # %for.body24 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop # label14: - i32.load8_u $push9=, u1($8) + loop # label11: + copy_local $push65=, $8 + tee_local $push64=, $6=, $pop65 + i32.load8_u $push9=, u1($pop64) i32.const $push63=, 97 i32.ne $push10=, $pop9, $pop63 - br_if 10, $pop10 # 10: down to label3 + br_if 9, $pop10 # 9: down to label1 # BB#8: # %for.inc30 # in Loop: Header=BB0_7 Depth=4 - i32.const $push65=, u1+1 - i32.add $7=, $8, $pop65 - i32.const $push64=, 1 - i32.add $6=, $8, $pop64 - copy_local $8=, $6 - i32.lt_s $push11=, $6, $0 - br_if 0, $pop11 # 0: up to label14 -.LBB0_9: # %for.body38.preheader + i32.const $push66=, 1 + i32.add $8=, $6, $pop66 + i32.lt_s $push11=, $8, $0 + br_if 0, $pop11 # 0: up to label11 +# BB#9: # in Loop: Header=BB0_3 Depth=3 + end_loop # label12: + i32.const $push67=, u1+1 + i32.add $7=, $6, $pop67 +.LBB0_10: # %for.body38.preheader # in Loop: Header=BB0_3 Depth=3 - end_loop # label15: - end_block # label13: + end_block # label10: i32.const $8=, 0 copy_local $6=, $4 -.LBB0_10: # %for.body38 +.LBB0_11: # %for.body38 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop # label16: + loop # label13: i32.add $push16=, $7, $8 i32.load8_u $push17=, 0($pop16) - i32.const $push72=, 65 - i32.const $push71=, 24 - i32.shl $push12=, $6, $pop71 - i32.const $push70=, 24 - i32.shr_s $push13=, $pop12, $pop70 - i32.const $push69=, 95 - i32.gt_s $push14=, $pop13, $pop69 - i32.select $push68=, $pop72, $6, $pop14 - tee_local $push67=, $6=, $pop68 - i32.const $push66=, 255 - i32.and $push15=, $pop67, $pop66 + i32.const $push74=, 65 + i32.const $push73=, 24 + i32.shl $push12=, $6, $pop73 + i32.const $push72=, 24 + i32.shr_s $push13=, $pop12, $pop72 + i32.const $push71=, 95 + i32.gt_s $push14=, $pop13, $pop71 + i32.select $push70=, $pop74, $6, $pop14 + tee_local $push69=, $6=, $pop70 + i32.const $push68=, 255 + i32.and $push15=, $pop69, $pop68 i32.ne $push18=, $pop17, $pop15 - br_if 8, $pop18 # 8: down to label4 -# BB#11: # %for.inc50 - # in Loop: Header=BB0_10 Depth=4 - i32.const $push74=, 1 - i32.add $8=, $8, $pop74 - i32.const $push73=, 1 - i32.add $6=, $6, $pop73 + br_if 8, $pop18 # 8: down to label1 +# BB#12: # %for.inc50 + # in Loop: Header=BB0_11 Depth=4 + i32.const $push76=, 1 + i32.add $8=, $8, $pop76 + i32.const $push75=, 1 + i32.add $6=, $6, $pop75 i32.lt_s $push19=, $8, $5 - br_if 0, $pop19 # 0: up to label16 -# BB#12: # %for.end54 + br_if 0, $pop19 # 0: up to label13 +# BB#13: # %for.end54 # in Loop: Header=BB0_3 Depth=3 - end_loop # label17: - i32.add $push76=, $7, $8 - tee_local $push75=, $8=, $pop76 - i32.load8_u $push20=, 0($pop75) - br_if 10, $pop20 # 10: down to label0 -# BB#13: # %for.cond61.preheader + end_loop # label14: + i32.add $push78=, $7, $8 + tee_local $push77=, $8=, $pop78 + i32.load8_u $push20=, 0($pop77) + br_if 6, $pop20 # 6: down to label1 +# BB#14: # %for.cond61.preheader # in Loop: Header=BB0_3 Depth=3 - i32.const $push78=, 1 - i32.add $push21=, $8, $pop78 + i32.const $push80=, 1 + i32.add $push21=, $8, $pop80 i32.load8_u $push22=, 0($pop21) - i32.const $push77=, 97 - i32.ne $push23=, $pop22, $pop77 - br_if 8, $pop23 # 8: down to label2 -# BB#14: # %for.cond61 + i32.const $push79=, 97 + i32.ne $push23=, $pop22, $pop79 + br_if 7, $pop23 # 7: down to label0 +# BB#15: # %for.cond61 # in Loop: Header=BB0_3 Depth=3 - i32.const $push80=, 2 - i32.add $push24=, $8, $pop80 + i32.const $push82=, 2 + i32.add $push24=, $8, $pop82 i32.load8_u $push25=, 0($pop24) - i32.const $push79=, 97 - i32.ne $push26=, $pop25, $pop79 - br_if 8, $pop26 # 8: down to label2 -# BB#15: # %for.cond61.1 + i32.const $push81=, 97 + i32.ne $push26=, $pop25, $pop81 + br_if 7, $pop26 # 7: down to label0 +# BB#16: # %for.cond61.1 # in Loop: Header=BB0_3 Depth=3 - i32.const $push86=, 3 - i32.add $push27=, $8, $pop86 + i32.const $push88=, 3 + i32.add $push27=, $8, $pop88 i32.load8_u $push28=, 0($pop27) - i32.const $push85=, 97 - i32.ne $push29=, $pop28, $pop85 - br_if 8, $pop29 # 8: down to label2 -# BB#16: # %for.cond61.2 + i32.const $push87=, 97 + i32.ne $push29=, $pop28, $pop87 + br_if 7, $pop29 # 7: down to label0 +# BB#17: # %for.cond61.2 # in Loop: Header=BB0_3 Depth=3 - i32.const $push88=, 4 - i32.add $push30=, $8, $pop88 + i32.const $push90=, 4 + i32.add $push30=, $8, $pop90 i32.load8_u $push31=, 0($pop30) - i32.const $push87=, 97 - i32.ne $push32=, $pop31, $pop87 - br_if 8, $pop32 # 8: down to label2 -# BB#17: # %for.cond61.3 + i32.const $push89=, 97 + i32.ne $push32=, $pop31, $pop89 + br_if 7, $pop32 # 7: down to label0 +# BB#18: # %for.cond61.3 # in Loop: Header=BB0_3 Depth=3 - i32.const $push90=, 5 - i32.add $push33=, $8, $pop90 + i32.const $push92=, 5 + i32.add $push33=, $8, $pop92 i32.load8_u $push34=, 0($pop33) - i32.const $push89=, 97 - i32.ne $push35=, $pop34, $pop89 - br_if 8, $pop35 # 8: down to label2 -# BB#18: # %for.cond61.4 + i32.const $push91=, 97 + i32.ne $push35=, $pop34, $pop91 + br_if 7, $pop35 # 7: down to label0 +# BB#19: # %for.cond61.4 # in Loop: Header=BB0_3 Depth=3 - i32.const $push92=, 6 - i32.add $push36=, $8, $pop92 + i32.const $push94=, 6 + i32.add $push36=, $8, $pop94 i32.load8_u $push37=, 0($pop36) - i32.const $push91=, 97 - i32.ne $push38=, $pop37, $pop91 - br_if 8, $pop38 # 8: down to label2 -# BB#19: # %for.cond61.5 + i32.const $push93=, 97 + i32.ne $push38=, $pop37, $pop93 + br_if 7, $pop38 # 7: down to label0 +# BB#20: # %for.cond61.5 # in Loop: Header=BB0_3 Depth=3 - i32.const $push94=, 7 - i32.add $push39=, $8, $pop94 + i32.const $push96=, 7 + i32.add $push39=, $8, $pop96 i32.load8_u $push40=, 0($pop39) - i32.const $push93=, 97 - i32.ne $push41=, $pop40, $pop93 - br_if 8, $pop41 # 8: down to label2 -# BB#20: # %for.cond61.6 + i32.const $push95=, 97 + i32.ne $push41=, $pop40, $pop95 + br_if 7, $pop41 # 7: down to label0 +# BB#21: # %for.cond61.6 # in Loop: Header=BB0_3 Depth=3 - i32.const $push96=, 8 - i32.add $push42=, $8, $pop96 + i32.const $push98=, 8 + i32.add $push42=, $8, $pop98 i32.load8_u $push43=, 0($pop42) - i32.const $push95=, 97 - i32.ne $push44=, $pop43, $pop95 - br_if 8, $pop44 # 8: down to label2 -# BB#21: # %for.cond61.7 + i32.const $push97=, 97 + i32.ne $push44=, $pop43, $pop97 + br_if 7, $pop44 # 7: down to label0 +# BB#22: # %for.cond61.7 # in Loop: Header=BB0_3 Depth=3 - i32.const $push98=, 1 - i32.add $5=, $5, $pop98 - i32.const $push97=, 80 - i32.lt_u $push45=, $5, $pop97 - br_if 0, $pop45 # 0: up to label9 -# BB#22: # %for.inc77 + i32.const $push100=, 1 + i32.add $5=, $5, $pop100 + i32.const $push99=, 80 + i32.lt_u $push45=, $5, $pop99 + br_if 0, $pop45 # 0: up to label6 +# BB#23: # %for.inc77 # in Loop: Header=BB0_2 Depth=2 - end_loop # label10: - i32.const $push82=, 1 - i32.add $2=, $2, $pop82 - i32.const $push81=, 8 - i32.lt_u $push46=, $2, $pop81 - br_if 0, $pop46 # 0: up to label7 -# BB#23: # %for.inc80 - # in Loop: Header=BB0_1 Depth=1 - end_loop # label8: + end_loop # label7: i32.const $push84=, 1 - i32.add $0=, $0, $pop84 + i32.add $2=, $2, $pop84 i32.const $push83=, 8 - i32.lt_u $push47=, $0, $pop83 - br_if 0, $pop47 # 0: up to label5 -# BB#24: # %for.end82 - end_loop # label6: + i32.lt_u $push46=, $2, $pop83 + br_if 0, $pop46 # 0: up to label4 +# BB#24: # %for.inc80 + # in Loop: Header=BB0_1 Depth=1 + end_loop # label5: + i32.const $push86=, 1 + i32.add $0=, $0, $pop86 + i32.const $push85=, 8 + i32.lt_u $push47=, $0, $pop85 + br_if 0, $pop47 # 0: up to label2 +# BB#25: # %for.end82 + end_loop # label3: i32.const $push48=, 0 call exit@FUNCTION, $pop48 unreachable -.LBB0_25: # %if.then48 - end_block # label4: - call abort@FUNCTION - unreachable -.LBB0_26: # %if.then28 - end_block # label3: - call abort@FUNCTION - unreachable -.LBB0_27: # %if.then68 - end_block # label2: - call abort@FUNCTION - unreachable -.LBB0_28: # %if.then19 +.LBB0_26: # %if.then59 end_block # label1: call abort@FUNCTION unreachable -.LBB0_29: # %if.then59 +.LBB0_27: # %if.then68 end_block # label0: call abort@FUNCTION unreachable |