diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-07-26 03:23:14 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-07-26 03:23:14 +0000 |
commit | fb364dc4d91733f057283b6338355d7559f71296 (patch) | |
tree | e1d127c875fc59227a31aa2268b428c84808b8fc /gcc | |
parent | cca8ead2b904e26000eb1582326ad70843515739 (diff) | |
download | gcc-fb364dc4d91733f057283b6338355d7559f71296.zip gcc-fb364dc4d91733f057283b6338355d7559f71296.tar.gz gcc-fb364dc4d91733f057283b6338355d7559f71296.tar.bz2 |
i386.c (output_fp_compare): Use ffreep to pop top value off of the stack if TARGET_USE_FFREEP.
* config/i386/i386.c (output_fp_compare): Use ffreep to pop top
value off of the stack if TARGET_USE_FFREEP.
From-SVN: r85178
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a44180f..d822608 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-07-25 Roger Sayle <roger@eyesopen.com> + + * config/i386/i386.c (output_fp_compare): Use ffreep to pop top + value off of the stack if TARGET_USE_FFREEP. + 2004-07-26 Bernardo Innocenti <bernie@develer.com> * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC (). diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 8e5b752..4b17cfb 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -8281,7 +8281,7 @@ output_fp_compare (rtx insn, rtx *operands, int eflags_p, int unordered_p) output_asm_insn ("fucomip\t{%y1, %0|%0, %y1}", operands); else output_asm_insn ("fcomip\t{%y1, %0|%0, %y1}", operands); - return "fstp\t%y0"; + return TARGET_USE_FFREEP ? "ffreep\t%y0" : "fstp\t%y0"; } else { |