OSDN Git Service

* config/sparc/sparc.c (input_operand): Accept bare
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Apr 2003 20:45:19 +0000 (20:45 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Apr 2003 20:45:19 +0000 (20:45 +0000)
CONSTANT_P_RTX operands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65143 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sparc/sparc.c

index 0de4ad0..9410ca5 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * config/sparc/sparc.c (input_operand): Accept bare
+       CONSTANT_P_RTX operands.
+
 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
 
        * gcse.c (struct ls_expr): Added pattern_regs field.
index bb84f45..3d99ac9 100644 (file)
@@ -1297,8 +1297,8 @@ input_operand (op, mode)
   if (mode != VOIDmode && GET_MODE (op) != VOIDmode && mode != GET_MODE (op))
     return 0;
 
-  /* Only a tiny bit of handling for CONSTANT_P_RTX is necessary.  */
-  if (GET_CODE (op) == CONST && GET_CODE (XEXP (op, 0)) == CONSTANT_P_RTX)
+  /* Accept CONSTANT_P_RTX, since it will be gone by CSE1 and result in 0/1.  */
+  if (GET_CODE (op) == CONSTANT_P_RTX)
     return 1;
 
   /* Allow any one instruction integer constant, and all CONST_INT