(standard_80386_constant_p): -0.0 is not 0.0.
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 17 Mar 1996 00:16:54 +0000 (19:16 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 17 Mar 1996 00:16:54 +0000 (19:16 -0500)
From-SVN: r11545

gcc/config/i386/i386.c

index 993b6c4..def1722 100644 (file)
@@ -1368,7 +1368,7 @@ standard_80387_constant_p (x)
 
   set_float_handler (handler);
   REAL_VALUE_FROM_CONST_DOUBLE (d, x);
-  is0 = REAL_VALUES_EQUAL (d, dconst0);
+  is0 = REAL_VALUES_EQUAL (d, dconst0) && !REAL_VALUE_MINUS_ZERO (d);
   is1 = REAL_VALUES_EQUAL (d, dconst1);
   set_float_handler (NULL_PTR);