summaryrefslogtreecommitdiff
path: root/gcc/config
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 /gcc/config
parentd23f095b7fca773e54c80bc7bb5c21d148b7017b (diff)
downloadgcc-6bc988cda5e493c3e632a2d82be7ea8763a618e2.tar.gz
* rs6000.c (input_operand): Don't expect CONST around CONSTANT_P_RTX.
* rs6000.md (movsi, movdi): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24877 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/rs6000/rs6000.c2
-rw-r--r--gcc/config/rs6000/rs6000.md6
2 files changed, 3 insertions, 5 deletions
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;