aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-01-27 01:14:29 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-01-27 01:14:29 +0000
commit6bc988cda5e493c3e632a2d82be7ea8763a618e2 (patch)
treef1f83ee50d08bce5b6bea9051108b6a140904305
parentd23f095b7fca773e54c80bc7bb5c21d148b7017b (diff)
* rs6000.c (input_operand): Don't expect CONST around CONSTANT_P_RTX.before-merge-gcc2-980929
* rs6000.md (movsi, movdi): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24877 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c2
-rw-r--r--gcc/config/rs6000/rs6000.md6
3 files changed, 8 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1c3e50d2576..daedd2e6f79 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 113e48152a6..a2bfcca9f27 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 e8ae79b4c49..4dc96869106 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;