m68k.c (const_uint32_operand): Recognize CONSTANT_P_RTX.
authorAndreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Fri, 10 Jul 1998 03:36:24 +0000 (03:36 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Fri, 10 Jul 1998 03:36:24 +0000 (03:36 +0000)
* config/m68k/m68k.c (const_uint32_operand): Recognize
CONSTANT_P_RTX.
(const_sint32_operand): Likewise.

From-SVN: r21049

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

index cd3b6f7234a00583f396bcdbd96670c38b76ec6c..9f0285963fb84ce5b4eb8323ec6461e8bd1fa373 100644 (file)
@@ -1,3 +1,9 @@
+Fri Jul 10 12:34:37 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
+
+       * config/m68k/m68k.c (const_uint32_operand): Recognize
+       CONSTANT_P_RTX.
+       (const_sint32_operand): Likewise. 
+
 Thu Jul  9 22:58:59 1998  Jeffrey A Law  (law@cygnus.com)
 
        * Makefile.in (alias.o): Depend on $(EXPR_H).
index e6a3caba104a300b95652d0e6c4a18d71e9e88a9..ba889ad946de8574997e5eab0b043600ae2d12cc 100644 (file)
@@ -3233,6 +3233,8 @@ const_uint32_operand (op, mode)
      rtx op;
      enum machine_mode mode;
 {
+  if (GET_CODE (op) == CONSTANT_P_RTX)
+    return 1;
 #if HOST_BITS_PER_WIDE_INT > 32
   /* All allowed constants will fit a CONST_INT.  */
   return (GET_CODE (op) == CONST_INT
@@ -3252,6 +3254,8 @@ const_sint32_operand (op, mode)
      rtx op;
      enum machine_mode mode;
 {
+  if (GET_CODE (op) == CONSTANT_P_RTX)
+    return 1;
   /* All allowed constants will fit a CONST_INT.  */
   return (GET_CODE (op) == CONST_INT
          && (INTVAL (op) >= (-0x7fffffff - 1) && INTVAL (op) <= 0x7fffffff));