From 01b4cf2b7a1fe9a3f6f070217be5f93854c54545 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 26 Jan 1999 17:14:29 -0800 Subject: [PATCH] rs6000.c (input_operand): Don't expect CONST around CONSTANT_P_RTX. * rs6000.c (input_operand): Don't expect CONST around CONSTANT_P_RTX. * rs6000.md (movsi, movdi): Likewise. From-SVN: r24877 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 2 +- gcc/config/rs6000/rs6000.md | 6 ++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1c3e50d25766..daedd2e6f792 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Jan 27 01:13:42 1999 Richard Henderson + + * 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 * function.c (expand_function_end): Pass arg_pointer_save_area to diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 113e48152a6b..a2bfcca9f27b 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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. */ diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index e8ae79b4c494..4dc968691066 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -8246,8 +8246,7 @@ 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; @@ -8892,8 +8891,7 @@ 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;