diff options
| author | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-30 12:43:51 +0000 |
|---|---|---|
| committer | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-30 12:43:51 +0000 |
| commit | 48a544a2e33441cc7d8e9ffe20c39b51eb10518d (patch) | |
| tree | 1c422daa5df515669ec565ecc8ca50d2969a5847 | |
| parent | b8f4daeb4e24eb42df7dbb799ef8663e4dc6ecea (diff) | |
| download | ppe42-gcc-48a544a2e33441cc7d8e9ffe20c39b51eb10518d.tar.gz ppe42-gcc-48a544a2e33441cc7d8e9ffe20c39b51eb10518d.zip | |
Fix FP GT comparisons on i386 with -ffast-math
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31138 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/config/i386/i386.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a26dfd269f0..1282eb0ff58 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +1999-12-30 Bernd Schmidt <bernds@cygnus.co.uk> + + * i386.c (ix86_expand_fp_compare): In non-sahf non-TARGET_IEEE + case, expand GT comparisons correctly. Fix a comment before this + part of the code. + 1999-12-30 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr> * dwarfout.c: Include "frame.h" diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 18124b4f12d..79521181750 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -4077,7 +4077,7 @@ ix86_expand_fp_compare (code, op0, op1, unordered) { /* * The numbers below correspond to the bits of the FPSW in AH. - * C3, C2, and C0 are in bits 0x40, 0x40, and 0x01 respectively. + * C3, C2, and C0 are in bits 0x40, 0x4, and 0x01 respectively. * * cmp C3 C2 C0 * > 0 0 0 @@ -4091,7 +4091,7 @@ ix86_expand_fp_compare (code, op0, op1, unordered) switch (code) { case GT: - mask = 0x01; + mask = 0x41; code = EQ; break; case LT: |

