aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/cris
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2004-09-29 19:46:18 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2004-09-29 19:46:18 +0000
commit8820e4bed84ebc9fdd23f394ec55e0faeac5fce9 (patch)
treecc5465ee34f8f7a14ece2536147cd1434557e968 /gcc/config/cris
parentc8dc36d6bcf43e68ed48335ee16f9590139917bd (diff)
downloadgcc-8820e4bed84ebc9fdd23f394ec55e0faeac5fce9.zip
gcc-8820e4bed84ebc9fdd23f394ec55e0faeac5fce9.tar.gz
gcc-8820e4bed84ebc9fdd23f394ec55e0faeac5fce9.tar.bz2
cris.md (moverside, movemside): With MEM, make sure the address is (plus reg mem).
* config/cris/cris.md (moverside, movemside): With MEM, make sure the address is (plus reg mem). From-SVN: r88298
Diffstat (limited to 'gcc/config/cris')
-rw-r--r--gcc/config/cris/cris.md14
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/config/cris/cris.md b/gcc/config/cris/cris.md
index 6092d24..1e925db 100644
--- a/gcc/config/cris/cris.md
+++ b/gcc/config/cris/cris.md
@@ -4904,9 +4904,10 @@
rtx otherop
= rtx_equal_p (operands[2], operands[0]) ? operands[3] : operands[2];
- /* Make sure we have canonical RTX so we match the insn pattern - a
- register or MULT in the first operand, not a constant. */
- if (CONSTANT_P (otherop))
+ /* Make sure we have canonical RTX so we match the insn pattern -
+ not a constant in the first operand. We also require the order
+ (plus reg mem) to match the final pattern. */
+ if (CONSTANT_P (otherop) || MEM_P (otherop))
{
operands[7] = operands[1];
operands[8] = otherop;
@@ -4954,9 +4955,10 @@
rtx otherop
= rtx_equal_p (operands[2], operands[0]) ? operands[3] : operands[2];
- /* Make sure we have canonical RTX so we match the insn pattern - a
- register or MULT in the first operand, not a constant. */
- if (CONSTANT_P (otherop))
+ /* Make sure we have canonical RTX so we match the insn pattern -
+ not a constant in the first operand. We also require the order
+ (plus reg mem) to match the final pattern. */
+ if (CONSTANT_P (otherop) || MEM_P (otherop))
{
operands[7] = operands[1];
operands[8] = otherop;