From: Andreas Schwab Date: Fri, 10 Jul 1998 03:36:24 +0000 (+0000) Subject: m68k.c (const_uint32_operand): Recognize CONSTANT_P_RTX. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03c5634a9d1c7bf019f539770fe4a16304315402;p=gcc.git m68k.c (const_uint32_operand): Recognize CONSTANT_P_RTX. * config/m68k/m68k.c (const_uint32_operand): Recognize CONSTANT_P_RTX. (const_sint32_operand): Likewise. From-SVN: r21049 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cd3b6f7234a..9f0285963fb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Fri Jul 10 12:34:37 1998 Andreas Schwab + + * 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). diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index e6a3caba104..ba889ad946d 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -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));