i386.md (floating point move splitters): Fix usage of standard_80387_constant_p.
authorUros Bizjak <ubizjak@gmail.com>
Sun, 15 May 2011 19:31:32 +0000 (21:31 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 15 May 2011 19:31:32 +0000 (21:31 +0200)
* config/i386/i386.md (floating point move splitters): Fix
usage of standard_80387_constant_p.
(ix86_preferred_reload_class): Ditto.

From-SVN: r173775

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.md

index e98904cbf2248ad9ac1e9b725622ad1488e6e3a8..6e4e7337948ca1ec6ecd15d8d7e73d6e304cb6eb 100644 (file)
@@ -1,3 +1,9 @@
+2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.md (floating point move splitters): Fix
+       usage of standard_80387_constant_p.
+       (ix86_preferred_reload_class): Ditto.
+
 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md (*movdf_internal): Simplify insn condition.
index 84678061d5e08dc2bd744b7b9ed8784c0d966e63..6a5044d156432f4b88ab90aa11c7140fdecad909 100644 (file)
@@ -28489,7 +28489,7 @@ ix86_preferred_reload_class (rtx x, reg_class_t regclass)
         zero above.  We only want to wind up preferring 80387 registers if
         we plan on doing computation with them.  */
       if (TARGET_80387
-         && standard_80387_constant_p (x))
+         && standard_80387_constant_p (x) > 0)
        {
          /* Limit class to non-sse.  */
          if (regclass == FLOAT_SSE_REGS)
index 1289fc0fbc5b12e470745a7c5c096c53ea1f7921..335ff9c146c4f064e72578f21621ca054bc5774b 100644 (file)
     }
   else if (FP_REG_P (r))
     {
-      if (!standard_80387_constant_p (c))
+      if (standard_80387_constant_p (c) < 1)
        FAIL;
     }
   else if (MMX_REG_P (r))
     }
   else if (FP_REG_P (r))
     {
-      if (!standard_80387_constant_p (c))
+      if (standard_80387_constant_p (c) < 1)
        FAIL;
     }
   else if (MMX_REG_P (r))