diff options
Diffstat (limited to 'test/torture-s/memcpy-1.c.s')
-rw-r--r-- | test/torture-s/memcpy-1.c.s | 237 |
1 files changed, 115 insertions, 122 deletions
diff --git a/test/torture-s/memcpy-1.c.s b/test/torture-s/memcpy-1.c.s index 43e9513b8..a06471718 100644 --- a/test/torture-s/memcpy-1.c.s +++ b/test/torture-s/memcpy-1.c.s @@ -8,8 +8,8 @@ copy: # @copy .param i32, i32, i32 .result i32 # BB#0: # %entry - call memcpy@FUNCTION, $0, $1, $2 - return $0 + i32.call $push0=, memcpy@FUNCTION, $0, $1, $2 + return $pop0 .endfunc .Lfunc_end0: .size copy, .Lfunc_end0-copy @@ -20,189 +20,182 @@ copy: # @copy .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, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 + .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $8=, __stack_pointer - i32.load $8=, 0($8) - i32.const $9=, 262144 - i32.sub $28=, $8, $9 - i32.const $9=, __stack_pointer - i32.store $28=, 0($9), $28 - i32.const $4=, 0 - copy_local $2=, $4 + i32.const $2=, __stack_pointer + i32.load $2=, 0($2) + i32.const $3=, 262144 + i32.sub $9=, $2, $3 + i32.const $3=, __stack_pointer + i32.store $9=, 0($3), $9 + i32.const $1=, 0 + i32.const $push37=, 0 + i32.const $push36=, 131072 + i32.call $discard=, memset@FUNCTION, $9, $pop37, $pop36 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 loop # label0: - i32.const $10=, 131072 - i32.add $10=, $28, $10 - i32.add $push0=, $10, $2 - i32.store8 $discard=, 0($pop0), $2 - i32.const $11=, 0 - i32.add $11=, $28, $11 - i32.add $push1=, $11, $2 - i32.store8 $discard=, 0($pop1), $4 - i32.const $7=, 1 - i32.add $2=, $2, $7 - i32.const $0=, 131072 - i32.ne $push2=, $2, $0 + i32.const $4=, 131072 + i32.add $4=, $9, $4 + i32.add $push0=, $4, $1 + i32.store8 $push1=, 0($pop0), $1 + i32.const $push39=, 1 + i32.add $1=, $pop1, $pop39 + i32.const $push38=, 131072 + i32.ne $push2=, $1, $pop38 br_if $pop2, 0 # 0: up to label0 # BB#2: # %for.end end_loop # label1: - i32.const $1=, 1024 - i32.const $12=, 0 - i32.add $12=, $28, $12 - i32.const $13=, 131072 - i32.add $13=, $28, $13 - call memcpy@FUNCTION, $12, $13, $1 - i32.const $4=, 0 + i32.const $push3=, 1024 + i32.const $5=, 131072 + i32.add $5=, $9, $5 + i32.call $discard=, memcpy@FUNCTION, $9, $5, $pop3 + i32.const $1=, 0 .LBB1_3: # %for.body6 # =>This Inner Loop Header: Depth=1 block loop # label3: - i32.const $2=, 255 - i32.const $14=, 0 - i32.add $14=, $28, $14 - i32.add $push3=, $14, $4 - i32.load8_u $push4=, 0($pop3) - i32.and $push5=, $4, $2 - i32.ne $push6=, $pop4, $pop5 - br_if $pop6, 2 # 2: down to label2 + i32.add $push4=, $9, $1 + i32.load8_u $push5=, 0($pop4) + i32.const $push42=, 255 + i32.and $push6=, $1, $pop42 + i32.ne $push7=, $pop5, $pop6 + br_if $pop7, 2 # 2: down to label2 # BB#4: # %for.cond3 # in Loop: Header=BB1_3 Depth=1 - i32.add $4=, $4, $7 - i32.const $3=, 1023 - i32.le_u $push7=, $4, $3 - br_if $pop7, 0 # 0: up to label3 + i32.const $push41=, 1 + i32.add $1=, $1, $pop41 + i32.const $push40=, 1023 + i32.le_u $push8=, $1, $pop40 + br_if $pop8, 0 # 0: up to label3 # BB#5: # %for.end15 end_loop # label4: - i32.const $15=, 0 - i32.add $15=, $28, $15 - call memset@FUNCTION, $15, $7, $1 + i32.const $push43=, 1 + i32.const $push9=, 1024 + i32.call $discard=, memset@FUNCTION, $9, $pop43, $pop9 + i32.const $1=, 1 .LBB1_6: # %for.cond17 # =>This Inner Loop Header: Depth=1 block loop # label6: - i32.gt_u $push8=, $7, $3 - br_if $pop8, 2 # 2: down to label5 + i32.const $push44=, 1023 + i32.gt_u $push10=, $1, $pop44 + br_if $pop10, 2 # 2: down to label5 # BB#7: # %for.cond17.for.body20_crit_edge # in Loop: Header=BB1_6 Depth=1 - i32.const $16=, 0 - i32.add $16=, $28, $16 - i32.add $5=, $16, $7 - i32.const $4=, 1 - i32.add $7=, $7, $4 - i32.load8_u $push28=, 0($5) - i32.eq $push29=, $pop28, $4 - br_if $pop29, 0 # 0: up to label6 + i32.add $0=, $9, $1 + i32.const $push46=, 1 + i32.add $1=, $1, $pop46 + i32.load8_u $push34=, 0($0) + i32.const $push45=, 1 + i32.eq $push35=, $pop34, $pop45 + br_if $pop35, 0 # 0: up to label6 # BB#8: # %if.then25 end_loop # label7: call abort@FUNCTION unreachable .LBB1_9: # %for.end29 end_block # label5: - i32.const $17=, 0 - i32.add $17=, $28, $17 - i32.const $18=, 131072 - i32.add $18=, $28, $18 - call memcpy@FUNCTION, $17, $18, $0 - i32.const $5=, 0 + i32.const $push11=, 131072 + i32.const $6=, 131072 + i32.add $6=, $9, $6 + i32.call $discard=, memcpy@FUNCTION, $9, $6, $pop11 + i32.const $1=, 0 .LBB1_10: # %for.body35 # =>This Inner Loop Header: Depth=1 block loop # label9: - i32.const $19=, 0 - i32.add $19=, $28, $19 - i32.add $push9=, $19, $5 - i32.load8_u $push10=, 0($pop9) - i32.and $push11=, $5, $2 - i32.ne $push12=, $pop10, $pop11 - br_if $pop12, 2 # 2: down to label8 + i32.add $push12=, $9, $1 + i32.load8_u $push13=, 0($pop12) + i32.const $push49=, 255 + i32.and $push14=, $1, $pop49 + i32.ne $push15=, $pop13, $pop14 + br_if $pop15, 2 # 2: down to label8 # BB#11: # %for.cond32 # in Loop: Header=BB1_10 Depth=1 - i32.const $7=, 1 - i32.add $5=, $5, $7 - i32.const $4=, 131071 - i32.le_u $push13=, $5, $4 - br_if $pop13, 0 # 0: up to label9 + i32.const $push48=, 1 + i32.add $1=, $1, $pop48 + i32.const $push47=, 131071 + i32.le_u $push16=, $1, $pop47 + br_if $pop16, 0 # 0: up to label9 # BB#12: # %for.end46 end_loop # label10: - i32.const $6=, 0 - i32.const $20=, 0 - i32.add $20=, $28, $20 - call memset@FUNCTION, $20, $6, $0 + i32.const $push18=, 0 + i32.const $push17=, 131072 + i32.call $discard=, memset@FUNCTION, $9, $pop18, $pop17 + i32.const $1=, 1 .LBB1_13: # %for.cond48 # =>This Inner Loop Header: Depth=1 block loop # label12: - i32.gt_u $push14=, $7, $4 - br_if $pop14, 2 # 2: down to label11 + i32.const $push50=, 131071 + i32.gt_u $push19=, $1, $pop50 + br_if $pop19, 2 # 2: down to label11 # BB#14: # %for.cond48.for.body51_crit_edge # in Loop: Header=BB1_13 Depth=1 - i32.const $21=, 0 - i32.add $21=, $28, $21 - i32.add $5=, $21, $7 - i32.const $push27=, 1 - i32.add $7=, $7, $pop27 - i32.load8_u $push26=, 0($5) - i32.const $push30=, 0 - i32.eq $push31=, $pop26, $pop30 - br_if $pop31, 0 # 0: up to label12 + i32.add $0=, $9, $1 + i32.const $push51=, 1 + i32.add $1=, $1, $pop51 + i32.load8_u $push33=, 0($0) + i32.const $push58=, 0 + i32.eq $push59=, $pop33, $pop58 + br_if $pop59, 0 # 0: up to label12 # BB#15: # %if.then56 end_loop # label13: call abort@FUNCTION unreachable .LBB1_16: # %for.end60 end_block # label11: - i32.const $22=, 0 - i32.add $22=, $28, $22 - i32.const $23=, 131072 - i32.add $23=, $28, $23 - call memcpy@FUNCTION, $22, $23, $1 + i32.const $push20=, 1024 + i32.const $7=, 131072 + i32.add $7=, $9, $7 + i32.call $discard=, memcpy@FUNCTION, $9, $7, $pop20 + i32.const $1=, 0 .LBB1_17: # %for.body66 # =>This Inner Loop Header: Depth=1 block loop # label15: - i32.const $24=, 0 - i32.add $24=, $28, $24 - i32.add $push15=, $24, $6 - i32.load8_u $push16=, 0($pop15) - i32.and $push17=, $6, $2 - i32.ne $push18=, $pop16, $pop17 - br_if $pop18, 2 # 2: down to label14 + i32.add $push21=, $9, $1 + i32.load8_u $push22=, 0($pop21) + i32.const $push54=, 255 + i32.and $push23=, $1, $pop54 + i32.ne $push24=, $pop22, $pop23 + br_if $pop24, 2 # 2: down to label14 # BB#18: # %for.cond63 # in Loop: Header=BB1_17 Depth=1 - i32.const $5=, 1 - i32.add $6=, $6, $5 - i32.le_u $push19=, $6, $3 - br_if $pop19, 0 # 0: up to label15 + i32.const $push53=, 1 + i32.add $1=, $1, $pop53 + i32.const $push52=, 1023 + i32.le_u $push25=, $1, $pop52 + br_if $pop25, 0 # 0: up to label15 # BB#19: # %for.end77 end_loop # label16: - i32.const $25=, 0 - i32.add $25=, $28, $25 - i32.const $26=, 131072 - i32.add $26=, $28, $26 - call memcpy@FUNCTION, $25, $26, $0 - i32.const $7=, 0 + i32.const $push26=, 131072 + i32.const $8=, 131072 + i32.add $8=, $9, $8 + i32.call $discard=, memcpy@FUNCTION, $9, $8, $pop26 + i32.const $1=, 0 .LBB1_20: # %for.body85 # =>This Inner Loop Header: Depth=1 block loop # label18: - i32.const $27=, 0 - i32.add $27=, $28, $27 - i32.add $push20=, $27, $7 - i32.load8_u $push21=, 0($pop20) - i32.and $push22=, $7, $2 - i32.ne $push23=, $pop21, $pop22 - br_if $pop23, 2 # 2: down to label17 + i32.add $push27=, $9, $1 + i32.load8_u $push28=, 0($pop27) + i32.const $push57=, 255 + i32.and $push29=, $1, $pop57 + i32.ne $push30=, $pop28, $pop29 + br_if $pop30, 2 # 2: down to label17 # BB#21: # %for.cond82 # in Loop: Header=BB1_20 Depth=1 - i32.add $7=, $7, $5 - i32.le_u $push24=, $7, $4 - br_if $pop24, 0 # 0: up to label18 + i32.const $push56=, 1 + i32.add $1=, $1, $pop56 + i32.const $push55=, 131071 + i32.le_u $push31=, $1, $pop55 + br_if $pop31, 0 # 0: up to label18 # BB#22: # %for.end96 end_loop # label19: - i32.const $push25=, 0 - call exit@FUNCTION, $pop25 + i32.const $push32=, 0 + call exit@FUNCTION, $pop32 unreachable .LBB1_23: # %if.then92 end_block # label17: |