m68k.c (standard_68881_constant_p): Don't accept -0.0 as valid 68881 constant.

* m68k.c (standard_68881_constant_p): Don't accept -0.0 as valid
        68881 constant.

From-SVN: r26964
This commit is contained in:
Andreas Schwab 1999-05-17 01:49:19 +00:00 committed by Jeff Law
parent 2e5b444824
commit 64c0b41420
2 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,9 @@ Mon May 17 01:57:37 1999 David Daney <daney@ibw.com.ni>
1999-05-17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* m68k.c (standard_68881_constant_p): Don't accept -0.0 as valid
68881 constant.
* fold-const.c (fold_truthop): When converting a one-bit
comparison don't sign extend the constant.

View File

@ -2460,9 +2460,11 @@ standard_68881_constant_p (x)
REAL_VALUE_FROM_CONST_DOUBLE (r, x);
/* Use REAL_VALUES_IDENTICAL instead of REAL_VALUES_EQUAL so that -0.0
is rejected. */
for (i = 0; i < 6; i++)
{
if (REAL_VALUES_EQUAL (r, values_68881[i]))
if (REAL_VALUES_IDENTICAL (r, values_68881[i]))
return (codes_68881[i]);
}