OSDN Git Service

* rs6000.c (input_operand): Don't expect CONST around CONSTANT_P_RTX.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jan 1999 01:14:29 +0000 (01:14 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jan 1999 01:14:29 +0000 (01:14 +0000)
        * rs6000.md (movsi, movdi): Likewise.

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

gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.md

index 1c3e50d..daedd2e 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jan 27 01:13:42 1999  Richard Henderson  <rth@cygnus.com>
+
+       * rs6000.c (input_operand): Don't expect CONST around CONSTANT_P_RTX.
+       * rs6000.md (movsi, movdi): Likewise.
+
 Tue Jan 26 13:31:38 1999  Jim Wilson  <wilson@cygnus.com>
 
        * function.c (expand_function_end): Pass arg_pointer_save_area to
index 113e481..a2bfcca 100644 (file)
@@ -1132,7 +1132,7 @@ input_operand (op, mode)
     return 1;
 
   /* 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)
+  if (GET_CODE (op) == CONSTANT_P_RTX)
     return 1;
 
   /* For floating-point, easy constants are valid.  */
index e8ae79b..4dc9686 100644 (file)
     operands[1] = GEN_INT (CONST_DOUBLE_LOW (operands[1]));
 
   /* Only a tiny bit of handling for CONSTANT_P_RTX is necessary.  */
-  if (GET_CODE (operands[1]) == CONST
-      && GET_CODE (XEXP (operands[1], 0)) == CONSTANT_P_RTX)
+  if (GET_CODE (operands[1]) == CONSTANT_P_RTX)
     {
       emit_insn (gen_rtx_SET (VOIDmode, operands[0], operands[1]));
       DONE;
     operands[1] = GEN_INT (CONST_DOUBLE_LOW (operands[1]));
 
   /* Only a tiny bit of handling for CONSTANT_P_RTX is necessary.  */
-  if (GET_CODE (operands[1]) == CONST
-      && GET_CODE (XEXP (operands[1], 0)) == CONSTANT_P_RTX)
+  if (GET_CODE (operands[1]) == CONSTANT_P_RTX)
     {
       emit_insn (gen_rtx_SET (VOIDmode, operands[0], operands[1]));
       DONE;