diff options
Diffstat (limited to 'test/torture-s/fprintf-1.c.s')
-rw-r--r-- | test/torture-s/fprintf-1.c.s | 410 |
1 files changed, 161 insertions, 249 deletions
diff --git a/test/torture-s/fprintf-1.c.s b/test/torture-s/fprintf-1.c.s index c1245c896..f88788dd6 100644 --- a/test/torture-s/fprintf-1.c.s +++ b/test/torture-s/fprintf-1.c.s @@ -6,281 +6,193 @@ .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, 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, i32, i32, i32, i32 # BB#0: # %entry - i32.const $39=, __stack_pointer - i32.load $39=, 0($39) - i32.const $40=, 16 - i32.sub $42=, $39, $40 - i32.const $40=, __stack_pointer - i32.store $42=, 0($40), $42 + i32.const $2=, __stack_pointer + i32.load $2=, 0($2) + i32.const $3=, 144 + i32.sub $13=, $2, $3 + i32.const $3=, __stack_pointer + i32.store $13=, 0($3), $13 i32.const $push1=, .L.str i32.const $push2=, 5 - i32.const $push49=, 1 - i32.const $push48=, 0 - i32.load $push0=, stdout($pop48) - i32.call $discard=, fwrite@FUNCTION, $pop1, $pop2, $pop49, $pop0 - i32.const $push47=, 0 - i32.load $push3=, stdout($pop47) - i32.const $push46=, .L.str - i32.call $1=, fprintf@FUNCTION, $pop3, $pop46 + i32.const $push61=, 1 + i32.const $push60=, 0 + i32.load $push0=, stdout($pop60) + i32.call $discard=, fwrite@FUNCTION, $pop1, $pop2, $pop61, $pop0 block - i32.const $push45=, 5 - i32.ne $push4=, $1, $pop45 - br_if 0, $pop4 # 0: down to label0 + i32.const $push59=, 0 + i32.load $push3=, stdout($pop59) + i32.const $push58=, .L.str + i32.const $push57=, 0 + i32.call $push4=, fprintf@FUNCTION, $pop3, $pop58, $pop57 + i32.const $push56=, 5 + i32.ne $push5=, $pop4, $pop56 + br_if 0, $pop5 # 0: down to label0 # BB#1: # %if.end - i32.const $push6=, .L.str.1 - i32.const $push7=, 6 - i32.const $push54=, 1 - i32.const $push53=, 0 - i32.load $push5=, stdout($pop53) - i32.call $discard=, fwrite@FUNCTION, $pop6, $pop7, $pop54, $pop5 - i32.const $push52=, 0 - i32.load $push8=, stdout($pop52) - i32.const $push51=, .L.str.1 - i32.call $1=, fprintf@FUNCTION, $pop8, $pop51 + i32.const $push7=, .L.str.1 + i32.const $push8=, 6 + i32.const $push67=, 1 + i32.const $push66=, 0 + i32.load $push6=, stdout($pop66) + i32.call $discard=, fwrite@FUNCTION, $pop7, $pop8, $pop67, $pop6 block - i32.const $push50=, 6 - i32.ne $push9=, $1, $pop50 - br_if 0, $pop9 # 0: down to label1 + i32.const $push65=, 0 + i32.load $push9=, stdout($pop65) + i32.const $push64=, .L.str.1 + i32.const $push63=, 0 + i32.call $push10=, fprintf@FUNCTION, $pop9, $pop64, $pop63 + i32.const $push62=, 6 + i32.ne $push11=, $pop10, $pop62 + br_if 0, $pop11 # 0: down to label1 # BB#2: # %if.end6 - i32.const $push11=, 97 - i32.const $push56=, 0 - i32.load $push10=, stdout($pop56) - i32.call $discard=, fputc@FUNCTION, $pop11, $pop10 - i32.const $push55=, 0 - i32.load $push12=, stdout($pop55) - i32.const $push13=, .L.str.2 - i32.call $1=, fprintf@FUNCTION, $pop12, $pop13 + i32.const $push13=, 97 + i32.const $push70=, 0 + i32.load $push12=, stdout($pop70) + i32.call $discard=, fputc@FUNCTION, $pop13, $pop12 block - i32.const $push14=, 1 - i32.ne $push15=, $1, $pop14 - br_if 0, $pop15 # 0: down to label2 + i32.const $push69=, 0 + i32.load $push14=, stdout($pop69) + i32.const $push15=, .L.str.2 + i32.const $push68=, 0 + i32.call $push16=, fprintf@FUNCTION, $pop14, $pop15, $pop68 + i32.const $push17=, 1 + i32.ne $push18=, $pop16, $pop17 + br_if 0, $pop18 # 0: down to label2 # BB#3: # %if.end11 - i32.const $push57=, 0 - i32.load $push16=, stdout($pop57) - i32.const $push17=, .L.str.3 - i32.call $1=, fprintf@FUNCTION, $pop16, $pop17 block - br_if 0, $1 # 0: down to label3 + i32.const $push72=, 0 + i32.load $push19=, stdout($pop72) + i32.const $push20=, .L.str.3 + i32.const $push71=, 0 + i32.call $push21=, fprintf@FUNCTION, $pop19, $pop20, $pop71 + br_if 0, $pop21 # 0: down to label3 # BB#4: # %if.end16 - i32.const $push19=, .L.str - i32.const $push20=, 5 - i32.const $push63=, 1 - i32.const $push62=, 0 - i32.load $push18=, stdout($pop62) - i32.call $discard=, fwrite@FUNCTION, $pop19, $pop20, $pop63, $pop18 - i32.const $push61=, 0 - i32.load $1=, stdout($pop61) - i32.const $3=, __stack_pointer - i32.load $3=, 0($3) - i32.const $4=, 4 - i32.sub $42=, $3, $4 - i32.const $4=, __stack_pointer - i32.store $42=, 0($4), $42 - i32.const $push60=, .L.str - i32.store $discard=, 0($42), $pop60 - i32.const $push59=, .L.str.4 - i32.call $1=, fprintf@FUNCTION, $1, $pop59 - i32.const $5=, __stack_pointer - i32.load $5=, 0($5) - i32.const $6=, 4 - i32.add $42=, $5, $6 - i32.const $6=, __stack_pointer - i32.store $42=, 0($6), $42 + i32.const $push23=, .L.str + i32.const $push24=, 5 + i32.const $push78=, 1 + i32.const $push77=, 0 + i32.load $push22=, stdout($pop77) + i32.call $discard=, fwrite@FUNCTION, $pop23, $pop24, $pop78, $pop22 + i32.const $push76=, 0 + i32.load $1=, stdout($pop76) + i32.const $push75=, .L.str + i32.store $discard=, 128($13):p2align=4, $pop75 + i32.const $push74=, .L.str.4 + i32.const $5=, 128 + i32.add $5=, $13, $5 block - i32.const $push58=, 5 - i32.ne $push21=, $1, $pop58 - br_if 0, $pop21 # 0: down to label4 + i32.call $push25=, fprintf@FUNCTION, $1, $pop74, $5 + i32.const $push73=, 5 + i32.ne $push26=, $pop25, $pop73 + br_if 0, $pop26 # 0: down to label4 # BB#5: # %if.end21 - i32.const $push23=, .L.str.1 - i32.const $push24=, 6 - i32.const $push69=, 1 - i32.const $push68=, 0 - i32.load $push22=, stdout($pop68) - i32.call $discard=, fwrite@FUNCTION, $pop23, $pop24, $pop69, $pop22 - i32.const $push67=, 0 - i32.load $1=, stdout($pop67) - i32.const $7=, __stack_pointer - i32.load $7=, 0($7) - i32.const $8=, 4 - i32.sub $42=, $7, $8 - i32.const $8=, __stack_pointer - i32.store $42=, 0($8), $42 - i32.const $push66=, .L.str.1 - i32.store $discard=, 0($42), $pop66 - i32.const $push65=, .L.str.4 - i32.call $1=, fprintf@FUNCTION, $1, $pop65 - i32.const $9=, __stack_pointer - i32.load $9=, 0($9) - i32.const $10=, 4 - i32.add $42=, $9, $10 - i32.const $10=, __stack_pointer - i32.store $42=, 0($10), $42 + i32.const $push28=, .L.str.1 + i32.const $push29=, 6 + i32.const $push84=, 1 + i32.const $push83=, 0 + i32.load $push27=, stdout($pop83) + i32.call $discard=, fwrite@FUNCTION, $pop28, $pop29, $pop84, $pop27 + i32.const $push82=, 0 + i32.load $1=, stdout($pop82) + i32.const $push81=, .L.str.1 + i32.store $discard=, 112($13):p2align=4, $pop81 + i32.const $push80=, .L.str.4 + i32.const $6=, 112 + i32.add $6=, $13, $6 block - i32.const $push64=, 6 - i32.ne $push25=, $1, $pop64 - br_if 0, $pop25 # 0: down to label5 + i32.call $push30=, fprintf@FUNCTION, $1, $pop80, $6 + i32.const $push79=, 6 + i32.ne $push31=, $pop30, $pop79 + br_if 0, $pop31 # 0: down to label5 # BB#6: # %if.end26 - i32.const $push27=, 97 - i32.const $push72=, 0 - i32.load $push26=, stdout($pop72) - i32.call $discard=, fputc@FUNCTION, $pop27, $pop26 - i32.const $push71=, 0 - i32.load $1=, stdout($pop71) - i32.const $11=, __stack_pointer - i32.load $11=, 0($11) - i32.const $12=, 4 - i32.sub $42=, $11, $12 - i32.const $12=, __stack_pointer - i32.store $42=, 0($12), $42 - i32.const $push28=, .L.str.2 - i32.store $discard=, 0($42), $pop28 - i32.const $push70=, .L.str.4 - i32.call $1=, fprintf@FUNCTION, $1, $pop70 - i32.const $13=, __stack_pointer - i32.load $13=, 0($13) - i32.const $14=, 4 - i32.add $42=, $13, $14 - i32.const $14=, __stack_pointer - i32.store $42=, 0($14), $42 + i32.const $push33=, 97 + i32.const $push87=, 0 + i32.load $push32=, stdout($pop87) + i32.call $discard=, fputc@FUNCTION, $pop33, $pop32 + i32.const $push86=, 0 + i32.load $1=, stdout($pop86) + i32.const $push34=, .L.str.2 + i32.store $discard=, 96($13):p2align=4, $pop34 + i32.const $push85=, .L.str.4 + i32.const $7=, 96 + i32.add $7=, $13, $7 block - i32.const $push29=, 1 - i32.ne $push30=, $1, $pop29 - br_if 0, $pop30 # 0: down to label6 + i32.call $push35=, fprintf@FUNCTION, $1, $pop85, $7 + i32.const $push36=, 1 + i32.ne $push37=, $pop35, $pop36 + br_if 0, $pop37 # 0: down to label6 # BB#7: # %if.end31 - i32.const $push74=, 0 - i32.load $1=, stdout($pop74) - i32.const $15=, __stack_pointer - i32.load $15=, 0($15) - i32.const $16=, 4 - i32.sub $42=, $15, $16 - i32.const $16=, __stack_pointer - i32.store $42=, 0($16), $42 - i32.const $push31=, .L.str.3 - i32.store $discard=, 0($42), $pop31 - i32.const $push73=, .L.str.4 - i32.call $1=, fprintf@FUNCTION, $1, $pop73 - i32.const $17=, __stack_pointer - i32.load $17=, 0($17) - i32.const $18=, 4 - i32.add $42=, $17, $18 - i32.const $18=, __stack_pointer - i32.store $42=, 0($18), $42 + i32.const $push89=, 0 + i32.load $1=, stdout($pop89) + i32.const $push38=, .L.str.3 + i32.store $discard=, 80($13):p2align=4, $pop38 + i32.const $push88=, .L.str.4 + i32.const $8=, 80 + i32.add $8=, $13, $8 block - br_if 0, $1 # 0: down to label7 + i32.call $push39=, fprintf@FUNCTION, $1, $pop88, $8 + br_if 0, $pop39 # 0: down to label7 # BB#8: # %if.end36 - i32.const $push33=, 120 - i32.const $push77=, 0 - i32.load $push32=, stdout($pop77) - i32.call $discard=, fputc@FUNCTION, $pop33, $pop32 - i32.const $push76=, 0 - i32.load $1=, stdout($pop76) - i32.const $19=, __stack_pointer - i32.load $19=, 0($19) - i32.const $20=, 4 - i32.sub $42=, $19, $20 - i32.const $20=, __stack_pointer - i32.store $42=, 0($20), $42 - i32.const $push75=, 120 - i32.store $discard=, 0($42), $pop75 - i32.const $push34=, .L.str.5 - i32.call $1=, fprintf@FUNCTION, $1, $pop34 - i32.const $21=, __stack_pointer - i32.load $21=, 0($21) - i32.const $22=, 4 - i32.add $42=, $21, $22 - i32.const $22=, __stack_pointer - i32.store $42=, 0($22), $42 + i32.const $push41=, 120 + i32.const $push92=, 0 + i32.load $push40=, stdout($pop92) + i32.call $discard=, fputc@FUNCTION, $pop41, $pop40 + i32.const $push91=, 0 + i32.load $1=, stdout($pop91) + i32.const $push90=, 120 + i32.store $discard=, 64($13):p2align=4, $pop90 + i32.const $push42=, .L.str.5 + i32.const $9=, 64 + i32.add $9=, $13, $9 block - i32.const $push35=, 1 - i32.ne $push36=, $1, $pop35 - br_if 0, $pop36 # 0: down to label8 + i32.call $push43=, fprintf@FUNCTION, $1, $pop42, $9 + i32.const $push44=, 1 + i32.ne $push45=, $pop43, $pop44 + br_if 0, $pop45 # 0: down to label8 # BB#9: # %if.end41 - i32.const $push80=, 0 - i32.load $1=, stdout($pop80) - i32.const $23=, __stack_pointer - i32.load $23=, 0($23) - i32.const $24=, 4 - i32.sub $42=, $23, $24 - i32.const $24=, __stack_pointer - i32.store $42=, 0($24), $42 - i32.const $push37=, .L.str.1 - i32.store $0=, 0($42), $pop37 - i32.const $push38=, .L.str.6 - i32.call $discard=, fprintf@FUNCTION, $1, $pop38 - i32.const $25=, __stack_pointer - i32.load $25=, 0($25) - i32.const $26=, 4 - i32.add $42=, $25, $26 - i32.const $26=, __stack_pointer - i32.store $42=, 0($26), $42 - i32.const $push79=, 0 - i32.load $1=, stdout($pop79) - i32.const $27=, __stack_pointer - i32.load $27=, 0($27) - i32.const $28=, 4 - i32.sub $42=, $27, $28 - i32.const $28=, __stack_pointer - i32.store $42=, 0($28), $42 - i32.store $discard=, 0($42), $0 - i32.const $push78=, .L.str.6 - i32.call $1=, fprintf@FUNCTION, $1, $pop78 - i32.const $29=, __stack_pointer - i32.load $29=, 0($29) - i32.const $30=, 4 - i32.add $42=, $29, $30 - i32.const $30=, __stack_pointer - i32.store $42=, 0($30), $42 + i32.const $push95=, 0 + i32.load $1=, stdout($pop95) + i32.const $push46=, .L.str.1 + i32.store $0=, 48($13):p2align=4, $pop46 + i32.const $push47=, .L.str.6 + i32.const $10=, 48 + i32.add $10=, $13, $10 + i32.call $discard=, fprintf@FUNCTION, $1, $pop47, $10 + i32.const $push94=, 0 + i32.load $1=, stdout($pop94) + i32.store $discard=, 32($13):p2align=4, $0 + i32.const $push93=, .L.str.6 + i32.const $11=, 32 + i32.add $11=, $13, $11 block - i32.const $push39=, 7 - i32.ne $push40=, $1, $pop39 - br_if 0, $pop40 # 0: down to label9 + i32.call $push48=, fprintf@FUNCTION, $1, $pop93, $11 + i32.const $push49=, 7 + i32.ne $push50=, $pop48, $pop49 + br_if 0, $pop50 # 0: down to label9 # BB#10: # %if.end46 - i32.const $push41=, 0 - i32.load $0=, stdout($pop41) - i32.const $31=, __stack_pointer - i32.load $31=, 0($31) - i32.const $32=, 4 - i32.sub $42=, $31, $32 - i32.const $32=, __stack_pointer - i32.store $42=, 0($32), $42 - i32.const $push82=, 0 - i32.store $1=, 0($42), $pop82 - i32.const $push42=, .L.str.7 - i32.call $discard=, fprintf@FUNCTION, $0, $pop42 - i32.const $33=, __stack_pointer - i32.load $33=, 0($33) - i32.const $34=, 4 - i32.add $42=, $33, $34 - i32.const $34=, __stack_pointer - i32.store $42=, 0($34), $42 + i32.const $push51=, 0 + i32.load $0=, stdout($pop51) + i32.const $push97=, 0 + i32.store $1=, 16($13):p2align=4, $pop97 + i32.const $push52=, .L.str.7 + i32.const $12=, 16 + i32.add $12=, $13, $12 + i32.call $discard=, fprintf@FUNCTION, $0, $pop52, $12 i32.load $0=, stdout($1) - i32.const $35=, __stack_pointer - i32.load $35=, 0($35) - i32.const $36=, 4 - i32.sub $42=, $35, $36 - i32.const $36=, __stack_pointer - i32.store $42=, 0($36), $42 - i32.store $2=, 0($42), $1 - i32.const $push81=, .L.str.7 - i32.call $1=, fprintf@FUNCTION, $0, $pop81 - i32.const $37=, __stack_pointer - i32.load $37=, 0($37) - i32.const $38=, 4 - i32.add $42=, $37, $38 - i32.const $38=, __stack_pointer - i32.store $42=, 0($38), $42 + i32.store $discard=, 0($13):p2align=4, $1 block - i32.const $push43=, 2 - i32.ne $push44=, $1, $pop43 - br_if 0, $pop44 # 0: down to label10 + i32.const $push96=, .L.str.7 + i32.call $push53=, fprintf@FUNCTION, $0, $pop96, $13 + i32.const $push54=, 2 + i32.ne $push55=, $pop53, $pop54 + br_if 0, $pop55 # 0: down to label10 # BB#11: # %if.end51 - i32.const $41=, 16 - i32.add $42=, $42, $41 - i32.const $41=, __stack_pointer - i32.store $42=, 0($41), $42 - return $2 + i32.const $4=, 144 + i32.add $13=, $13, $4 + i32.const $4=, __stack_pointer + i32.store $13=, 0($4), $13 + return $1 .LBB0_12: # %if.then50 end_block # label10: call abort@FUNCTION |