m68k.c (standard_68881_constant_p): Don't accept -0.0 as valid 68881 constant.
authorAndreas Schwab <schwab@issan.cs.uni-dortmund.de>
Mon, 17 May 1999 01:49:19 +0000 (01:49 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 17 May 1999 01:49:19 +0000 (19:49 -0600)
        * m68k.c (standard_68881_constant_p): Don't accept -0.0 as valid
        68881 constant.

From-SVN: r26964

gcc/ChangeLog
gcc/config/m68k/m68k.c

index 6460356a5b008f6507c492288b4dd8337e03951f..0853d936e33b6035390841f228a3905254622a50 100644 (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.
 
index 344f9b659cbb551755ca6384965e4072e799cf29..98f51978ac88d29185c7acd80178d12b3d17f966 100644 (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]);
     }