diff options
Diffstat (limited to 'test/torture-s/memcpy-2.c.s')
-rw-r--r-- | test/torture-s/memcpy-2.c.s | 246 |
1 files changed, 134 insertions, 112 deletions
diff --git a/test/torture-s/memcpy-2.c.s b/test/torture-s/memcpy-2.c.s index bc4367613..031722e4b 100644 --- a/test/torture-s/memcpy-2.c.s +++ b/test/torture-s/memcpy-2.c.s @@ -6,10 +6,9 @@ .type main,@function main: # @main .result i32 - .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 + .local i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $6=, 0 - copy_local $0=, $6 + i32.const $0=, 0 .LBB0_1: # %for.cond1.preheader # =>This Loop Header: Depth=1 # Child Loop BB0_2 Depth 2 @@ -20,9 +19,9 @@ main: # @main block block loop # label2: - i32.const $7=, u1 - i32.add $1=, $7, $0 - copy_local $2=, $6 + i32.const $push46=, u1 + i32.add $1=, $0, $pop46 + i32.const $2=, 0 .LBB0_2: # %for.cond4.preheader # Parent Loop BB0_1 Depth=1 # => This Loop Header: Depth=2 @@ -31,10 +30,10 @@ main: # @main # Child Loop BB0_6 Depth 4 # Child Loop BB0_10 Depth 4 loop # label4: - i32.const $8=, u2 - i32.add $3=, $8, $2 - i32.const $9=, 65 - i32.add $4=, $2, $9 + i32.const $push48=, u2 + i32.add $3=, $2, $pop48 + i32.const $push47=, 65 + i32.add $4=, $2, $pop47 i32.const $5=, 1 .LBB0_3: # %for.cond7.preheader # Parent Loop BB0_1 Depth=1 @@ -44,58 +43,61 @@ main: # @main # Child Loop BB0_6 Depth 4 # Child Loop BB0_10 Depth 4 loop # label6: - i32.const $14=, -96 - copy_local $15=, $9 + i32.const $push51=, u1 + i32.const $push50=, 97 + i32.const $push49=, 96 + i32.call $discard=, memset@FUNCTION, $pop51, $pop50, $pop49 + i32.const $6=, 65 + i32.const $8=, -96 .LBB0_4: # %for.body9 # 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 # label8: - i32.const $13=, 96 - i32.add $push0=, $7, $14 - i32.add $push1=, $pop0, $13 - i32.const $push2=, 97 - i32.store8 $10=, 0($pop1), $pop2 - i32.const $11=, 24 - i32.const $12=, 95 - i32.add $push7=, $8, $14 - i32.add $push8=, $pop7, $13 - i32.shl $push3=, $15, $11 - i32.shr_s $push4=, $pop3, $11 - i32.gt_s $push5=, $pop4, $12 - i32.select $push6=, $pop5, $9, $15 - i32.store8 $15=, 0($pop8), $pop6 - i32.const $13=, 1 - i32.add $15=, $15, $13 - i32.add $14=, $14, $13 - br_if $14, 0 # 0: up to label8 + i32.const $push57=, 24 + i32.shl $push2=, $6, $pop57 + i32.const $push56=, 24 + i32.shr_s $push3=, $pop2, $pop56 + i32.const $push55=, 95 + i32.gt_s $push4=, $pop3, $pop55 + i32.const $push54=, 65 + i32.select $push5=, $pop4, $pop54, $6 + i32.store8 $push6=, u2+96($8), $pop5 + i32.const $push53=, 1 + i32.add $6=, $pop6, $pop53 + i32.const $push52=, 1 + i32.add $8=, $8, $pop52 + br_if $8, 0 # 0: up to label8 # BB#5: # %for.end # in Loop: Header=BB0_3 Depth=3 end_loop # label9: - call memcpy@FUNCTION, $1, $3, $5 - i32.const $14=, 0 - copy_local $16=, $7 + i32.call $discard=, memcpy@FUNCTION, $1, $3, $5 + i32.const $7=, u1 + i32.const $8=, 0 block - i32.lt_s $push9=, $0, $13 - br_if $pop9, 0 # 0: down to label10 + i32.const $push58=, 1 + i32.lt_s $push7=, $0, $pop58 + br_if $pop7, 0 # 0: down to label10 .LBB0_6: # %for.body23 # 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 # label11: - i32.const $15=, u1 - i32.add $push10=, $15, $14 - i32.load8_u $push11=, 0($pop10) - i32.ne $push12=, $pop11, $10 - br_if $pop12, 1 # 1: down to label12 + i32.load8_u $push8=, u1($8) + i32.const $push59=, 97 + i32.ne $push9=, $pop8, $pop59 + br_if $pop9, 1 # 1: down to label12 # BB#7: # %for.inc29 # in Loop: Header=BB0_6 Depth=4 - i32.add $14=, $14, $13 - i32.add $16=, $15, $14 - i32.lt_s $push13=, $14, $0 - br_if $pop13, 0 # 0: up to label11 + i32.const $push61=, u1+1 + i32.add $7=, $8, $pop61 + i32.const $push60=, 1 + i32.add $6=, $8, $pop60 + copy_local $8=, $6 + i32.lt_s $push10=, $6, $0 + br_if $pop10, 0 # 0: up to label11 br 2 # 2: down to label10 .LBB0_8: # %if.then27 end_loop # label12: @@ -104,109 +106,129 @@ main: # @main .LBB0_9: # %for.body36.preheader # in Loop: Header=BB0_3 Depth=3 end_block # label10: - i32.const $14=, 0 - copy_local $15=, $4 + i32.const $8=, 0 + copy_local $6=, $4 .LBB0_10: # %for.body36 # 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 # label13: - i32.shl $push14=, $15, $11 - i32.shr_s $push15=, $pop14, $11 - i32.gt_s $push16=, $pop15, $12 - i32.const $push17=, 65 - i32.select $15=, $pop16, $pop17, $15 - i32.add $push20=, $16, $14 - i32.load8_u $push21=, 0($pop20) - i32.const $push18=, 255 - i32.and $push19=, $15, $pop18 - i32.ne $push22=, $pop21, $pop19 - br_if $pop22, 9 # 9: down to label0 + i32.add $push15=, $7, $8 + i32.load8_u $push16=, 0($pop15) + i32.const $push67=, 24 + i32.shl $push11=, $6, $pop67 + i32.const $push66=, 24 + i32.shr_s $push12=, $pop11, $pop66 + i32.const $push65=, 95 + i32.gt_s $push13=, $pop12, $pop65 + i32.const $push64=, 65 + i32.select $push0=, $pop13, $pop64, $6 + tee_local $push63=, $6=, $pop0 + i32.const $push62=, 255 + i32.and $push14=, $pop63, $pop62 + i32.ne $push17=, $pop16, $pop14 + br_if $pop17, 9 # 9: down to label0 # BB#11: # %for.inc48 # in Loop: Header=BB0_10 Depth=4 - i32.add $14=, $14, $13 - i32.add $15=, $15, $13 - i32.lt_s $push23=, $14, $5 - br_if $pop23, 0 # 0: up to label13 + i32.const $push69=, 1 + i32.add $8=, $8, $pop69 + i32.const $push68=, 1 + i32.add $6=, $6, $pop68 + i32.lt_s $push18=, $8, $5 + br_if $pop18, 0 # 0: up to label13 # BB#12: # %for.body56.preheader # in Loop: Header=BB0_3 Depth=3 end_loop # label14: - i32.add $14=, $16, $14 - i32.load8_u $push24=, 0($14) - i32.ne $push25=, $pop24, $10 - br_if $pop25, 6 # 6: down to label1 + i32.add $push1=, $7, $8 + tee_local $push71=, $8=, $pop1 + i32.load8_u $push19=, 0($pop71) + i32.const $push70=, 97 + i32.ne $push20=, $pop19, $pop70 + br_if $pop20, 6 # 6: down to label1 # BB#13: # %for.inc62 # in Loop: Header=BB0_3 Depth=3 - i32.add $push26=, $14, $13 - i32.load8_u $push27=, 0($pop26) - i32.ne $push28=, $pop27, $10 - br_if $pop28, 6 # 6: down to label1 + i32.const $push73=, 1 + i32.add $push21=, $8, $pop73 + i32.load8_u $push22=, 0($pop21) + i32.const $push72=, 97 + i32.ne $push23=, $pop22, $pop72 + br_if $pop23, 6 # 6: down to label1 # BB#14: # %for.inc62.1 # in Loop: Header=BB0_3 Depth=3 - i32.const $push29=, 2 - i32.add $push30=, $14, $pop29 - i32.load8_u $push31=, 0($pop30) - i32.ne $push32=, $pop31, $10 - br_if $pop32, 6 # 6: down to label1 + i32.const $push79=, 2 + i32.add $push24=, $8, $pop79 + i32.load8_u $push25=, 0($pop24) + i32.const $push78=, 97 + i32.ne $push26=, $pop25, $pop78 + br_if $pop26, 6 # 6: down to label1 # BB#15: # %for.inc62.2 # in Loop: Header=BB0_3 Depth=3 - i32.const $push33=, 3 - i32.add $push34=, $14, $pop33 - i32.load8_u $push35=, 0($pop34) - i32.ne $push36=, $pop35, $10 - br_if $pop36, 6 # 6: down to label1 + i32.const $push81=, 3 + i32.add $push27=, $8, $pop81 + i32.load8_u $push28=, 0($pop27) + i32.const $push80=, 97 + i32.ne $push29=, $pop28, $pop80 + br_if $pop29, 6 # 6: down to label1 # BB#16: # %for.inc62.3 # in Loop: Header=BB0_3 Depth=3 - i32.const $push37=, 4 - i32.add $push38=, $14, $pop37 - i32.load8_u $push39=, 0($pop38) - i32.ne $push40=, $pop39, $10 - br_if $pop40, 6 # 6: down to label1 + i32.const $push83=, 4 + i32.add $push30=, $8, $pop83 + i32.load8_u $push31=, 0($pop30) + i32.const $push82=, 97 + i32.ne $push32=, $pop31, $pop82 + br_if $pop32, 6 # 6: down to label1 # BB#17: # %for.inc62.4 # in Loop: Header=BB0_3 Depth=3 - i32.const $push41=, 5 - i32.add $push42=, $14, $pop41 - i32.load8_u $push43=, 0($pop42) - i32.ne $push44=, $pop43, $10 - br_if $pop44, 6 # 6: down to label1 + i32.const $push85=, 5 + i32.add $push33=, $8, $pop85 + i32.load8_u $push34=, 0($pop33) + i32.const $push84=, 97 + i32.ne $push35=, $pop34, $pop84 + br_if $pop35, 6 # 6: down to label1 # BB#18: # %for.inc62.5 # in Loop: Header=BB0_3 Depth=3 - i32.const $push45=, 6 - i32.add $push46=, $14, $pop45 - i32.load8_u $push47=, 0($pop46) - i32.ne $push48=, $pop47, $10 - br_if $pop48, 6 # 6: down to label1 + i32.const $push87=, 6 + i32.add $push36=, $8, $pop87 + i32.load8_u $push37=, 0($pop36) + i32.const $push86=, 97 + i32.ne $push38=, $pop37, $pop86 + br_if $pop38, 6 # 6: down to label1 # BB#19: # %for.inc62.6 # in Loop: Header=BB0_3 Depth=3 - i32.const $push49=, 7 - i32.add $push50=, $14, $pop49 - i32.load8_u $push51=, 0($pop50) - i32.ne $push52=, $pop51, $10 - br_if $pop52, 6 # 6: down to label1 + i32.const $push89=, 7 + i32.add $push39=, $8, $pop89 + i32.load8_u $push40=, 0($pop39) + i32.const $push88=, 97 + i32.ne $push41=, $pop40, $pop88 + br_if $pop41, 6 # 6: down to label1 # BB#20: # %for.inc62.7 # in Loop: Header=BB0_3 Depth=3 - i32.add $5=, $5, $13 - i32.const $push53=, 80 - i32.lt_u $push54=, $5, $pop53 - br_if $pop54, 0 # 0: up to label6 + i32.const $push91=, 1 + i32.add $5=, $5, $pop91 + i32.const $push90=, 80 + i32.lt_u $push42=, $5, $pop90 + br_if $pop42, 0 # 0: up to label6 # BB#21: # %for.inc69 # in Loop: Header=BB0_2 Depth=2 end_loop # label7: - i32.add $2=, $2, $13 - i32.const $14=, 8 - i32.lt_u $push55=, $2, $14 - br_if $pop55, 0 # 0: up to label4 + i32.const $push75=, 1 + i32.add $2=, $2, $pop75 + i32.const $push74=, 8 + i32.lt_u $push43=, $2, $pop74 + br_if $pop43, 0 # 0: up to label4 # BB#22: # %for.inc72 # in Loop: Header=BB0_1 Depth=1 end_loop # label5: - i32.add $0=, $0, $13 - i32.lt_u $push56=, $0, $14 - br_if $pop56, 0 # 0: up to label2 + i32.const $push77=, 1 + i32.add $0=, $0, $pop77 + i32.const $push76=, 8 + i32.lt_u $push44=, $0, $pop76 + br_if $pop44, 0 # 0: up to label2 # BB#23: # %for.end74 end_loop # label3: - i32.const $push57=, 0 - call exit@FUNCTION, $pop57 + i32.const $push45=, 0 + call exit@FUNCTION, $pop45 unreachable .LBB0_24: # %if.then60 end_block # label1: |