Commit 53322b0c by Richard Kenner

(output_{pro,epi}log): Don't need no-ops after calls to functions to

save and restore FP regs.

From-SVN: r5211
parent 9bf99417
...@@ -1332,15 +1332,14 @@ output_prolog (file, size) ...@@ -1332,15 +1332,14 @@ output_prolog (file, size)
fprintf (file, "\tmfcr 12\n"); fprintf (file, "\tmfcr 12\n");
/* Do any required saving of fpr's. If only one or two to save, do it /* Do any required saving of fpr's. If only one or two to save, do it
ourself. Otherwise, call function. */ ourself. Otherwise, call function. Note that since they are statically
linked, we do not need a nop following them. */
if (first_fp_reg == 62) if (first_fp_reg == 62)
fprintf (file, "\tstfd 30,-16(1)\n\tstfd 31,-8(1)\n"); fprintf (file, "\tstfd 30,-16(1)\n\tstfd 31,-8(1)\n");
else if (first_fp_reg == 63) else if (first_fp_reg == 63)
fprintf (file, "\tstfd 31,-8(1)\n"); fprintf (file, "\tstfd 31,-8(1)\n");
else if (first_fp_reg != 64) else if (first_fp_reg != 64)
fprintf (file, "\tbl ._savef%d\n\tcror %d,%d,%d\n", first_fp_reg - 32, fprintf (file, "\tbl ._savef%d\n", first_fp_reg - 32);
RS6000_CROR_BIT_NUMBER, RS6000_CROR_BIT_NUMBER,
RS6000_CROR_BIT_NUMBER);
/* Now save gpr's. */ /* Now save gpr's. */
if (first_reg == 31) if (first_reg == 31)
...@@ -1443,9 +1442,7 @@ output_epilog (file, size) ...@@ -1443,9 +1442,7 @@ output_epilog (file, size)
/* If we have to restore more than two FP registers, branch to the /* If we have to restore more than two FP registers, branch to the
restore function. It will return to our caller. */ restore function. It will return to our caller. */
if (first_fp_reg < 62) if (first_fp_reg < 62)
fprintf (file, "\tb ._restf%d\n\tcror %d,%d,%d\n", first_fp_reg - 32, fprintf (file, "\tb ._restf%d\n", first_fp_reg - 32);
RS6000_CROR_BIT_NUMBER, RS6000_CROR_BIT_NUMBER,
RS6000_CROR_BIT_NUMBER);
else else
fprintf (file, "\tbr\n"); fprintf (file, "\tbr\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment