68881 constant.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26964
138bc75d-0d04-0410-961f-
82ee72b054a4
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.
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]);
}