OSDN Git Service

* config/cris/cris.md (moverside, movemside): With MEM, make sure
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Sep 2004 19:46:18 +0000 (19:46 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Sep 2004 19:46:18 +0000 (19:46 +0000)
the address is (plus reg mem).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88298 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/cris/cris.md

index 170879c..7b1103c 100644 (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>
 
        * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
index 6092d24..1e925db 100644 (file)
   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;
   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;