Commit 87ccbc5c by Uros Bizjak Committed by Uros Bizjak

i386.c (output_387_ffreep): Create output from a template string for !HAVE_AS_IX86_FFREEP.

        * config/i386/i386.c (output_387_ffreep): Create output from a
        template string for !HAVE_AS_IX86_FFREEP.

From-SVN: r118101
parent f356a436
2006-10-28 Uros Bizjak <uros@kss-loka.si>
* config/i386/i386.c (output_387_ffreep): Create output from a
template string for !HAVE_AS_IX86_FFREEP.
2006-10-27 Eric Christopher <echristo@apple.com>
* config/darwin.c: Fix formatting and grammar.
......
......@@ -8698,17 +8698,15 @@ output_387_ffreep (rtx *operands ATTRIBUTE_UNUSED, int opno)
#if HAVE_AS_IX86_FFREEP
return opno ? "ffreep\t%y1" : "ffreep\t%y0";
#else
switch (REGNO (operands[opno]))
{
case FIRST_STACK_REG + 0: return ".word\t0xc0df";
case FIRST_STACK_REG + 1: return ".word\t0xc1df";
case FIRST_STACK_REG + 2: return ".word\t0xc2df";
case FIRST_STACK_REG + 3: return ".word\t0xc3df";
case FIRST_STACK_REG + 4: return ".word\t0xc4df";
case FIRST_STACK_REG + 5: return ".word\t0xc5df";
case FIRST_STACK_REG + 6: return ".word\t0xc6df";
case FIRST_STACK_REG + 7: return ".word\t0xc7df";
}
{
static char retval[] = ".word\t0xc_df";
int regno = REGNO (operands[opno]);
gcc_assert (FP_REGNO_P (regno));
retval[9] = '0' + (regno - FIRST_STACK_REG);
return retval;
}
#endif
return opno ? "fstp\t%y1" : "fstp\t%y0";
......
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