Commit d22ce03d by Bernd Schmidt Committed by Bernd Schmidt

Fix FP GT comparisons on i386 with -ffast-math

From-SVN: r31138
parent 3fe5b143
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> 1999-12-30 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
* dwarfout.c: Include "frame.h" * dwarfout.c: Include "frame.h"
......
...@@ -4077,7 +4077,7 @@ ix86_expand_fp_compare (code, op0, op1, unordered) ...@@ -4077,7 +4077,7 @@ ix86_expand_fp_compare (code, op0, op1, unordered)
{ {
/* /*
* The numbers below correspond to the bits of the FPSW in AH. * 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 * cmp C3 C2 C0
* > 0 0 0 * > 0 0 0
...@@ -4091,7 +4091,7 @@ ix86_expand_fp_compare (code, op0, op1, unordered) ...@@ -4091,7 +4091,7 @@ ix86_expand_fp_compare (code, op0, op1, unordered)
switch (code) switch (code)
{ {
case GT: case GT:
mask = 0x01; mask = 0x41;
code = EQ; code = EQ;
break; break;
case LT: case LT:
......
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