]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000.c (input_operand): Don't expect CONST around CONSTANT_P_RTX.
authorRichard Henderson <rth@cygnus.com>
Wed, 27 Jan 1999 01:14:29 +0000 (17:14 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 27 Jan 1999 01:14:29 +0000 (17:14 -0800)
        * rs6000.c (input_operand): Don't expect CONST around CONSTANT_P_RTX.
        * rs6000.md (movsi, movdi): Likewise.

From-SVN: r24877

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

index 1c3e50d25766e0ea91a91b74584d29d4b45d4508..daedd2e6f7926cca23ca5d6b6cf72afb4c5457d5 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 113e48152a6ba3d3b6541a75fceb91f7e6a71352..a2bfcca9f27b004723e470fdd24b6d74cadfb91c 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 e8ae79b4c494bcf48df96c72aa5c7db6a38841c3..4dc968691066394bd7166d571dbe1bd40cc1e4e4 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;