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
This commit is contained in:
Hans-Peter Nilsson 2004-09-29 19:46:18 +00:00 committed by Hans-Peter Nilsson
parent c8dc36d6bc
commit 8820e4bed8
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2004-09-29 Hans-Peter Nilsson <hp@axis.com>
* config/cris/cris.md (moverside, movemside): With MEM, make sure
the address is (plus reg mem).
2004-09-29 David Edelsohn <edelsohn@gnu.org> 2004-09-29 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define. * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.

View File

@ -4904,9 +4904,10 @@
rtx otherop rtx otherop
= rtx_equal_p (operands[2], operands[0]) ? operands[3] : operands[2]; = rtx_equal_p (operands[2], operands[0]) ? operands[3] : operands[2];
/* Make sure we have canonical RTX so we match the insn pattern - a /* Make sure we have canonical RTX so we match the insn pattern -
register or MULT in the first operand, not a constant. */ not a constant in the first operand. We also require the order
if (CONSTANT_P (otherop)) (plus reg mem) to match the final pattern. */
if (CONSTANT_P (otherop) || MEM_P (otherop))
{ {
operands[7] = operands[1]; operands[7] = operands[1];
operands[8] = otherop; operands[8] = otherop;
@ -4954,9 +4955,10 @@
rtx otherop rtx otherop
= rtx_equal_p (operands[2], operands[0]) ? operands[3] : operands[2]; = rtx_equal_p (operands[2], operands[0]) ? operands[3] : operands[2];
/* Make sure we have canonical RTX so we match the insn pattern - a /* Make sure we have canonical RTX so we match the insn pattern -
register or MULT in the first operand, not a constant. */ not a constant in the first operand. We also require the order
if (CONSTANT_P (otherop)) (plus reg mem) to match the final pattern. */
if (CONSTANT_P (otherop) || MEM_P (otherop))
{ {
operands[7] = operands[1]; operands[7] = operands[1];
operands[8] = otherop; operands[8] = otherop;