Commit 03c5634a by Andreas Schwab Committed by Andreas Schwab

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
parent 57618cf4
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) Thu Jul 9 22:58:59 1998 Jeffrey A Law (law@cygnus.com)
* Makefile.in (alias.o): Depend on $(EXPR_H). * Makefile.in (alias.o): Depend on $(EXPR_H).
......
...@@ -3233,6 +3233,8 @@ const_uint32_operand (op, mode) ...@@ -3233,6 +3233,8 @@ const_uint32_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode;
{ {
if (GET_CODE (op) == CONSTANT_P_RTX)
return 1;
#if HOST_BITS_PER_WIDE_INT > 32 #if HOST_BITS_PER_WIDE_INT > 32
/* All allowed constants will fit a CONST_INT. */ /* All allowed constants will fit a CONST_INT. */
return (GET_CODE (op) == CONST_INT return (GET_CODE (op) == CONST_INT
...@@ -3252,6 +3254,8 @@ const_sint32_operand (op, mode) ...@@ -3252,6 +3254,8 @@ const_sint32_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode;
{ {
if (GET_CODE (op) == CONSTANT_P_RTX)
return 1;
/* All allowed constants will fit a CONST_INT. */ /* All allowed constants will fit a CONST_INT. */
return (GET_CODE (op) == CONST_INT return (GET_CODE (op) == CONST_INT
&& (INTVAL (op) >= (-0x7fffffff - 1) && INTVAL (op) <= 0x7fffffff)); && (INTVAL (op) >= (-0x7fffffff - 1) && INTVAL (op) <= 0x7fffffff));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment