OSDN Git Service

(standard_80386_constant_p): -0.0 is not 0.0.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 17 Mar 1996 00:16:54 +0000 (00:16 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 17 Mar 1996 00:16:54 +0000 (00:16 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11545 138bc75d-0d04-0410-961f-82ee72b054a4

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);