OSDN Git Service

(movdi matchers): Fix src/dest order in unaligned reg->reg case.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Aug 1995 23:07:17 +0000 (23:07 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Aug 1995 23:07:17 +0000 (23:07 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10223 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/i960/i960.md

index a86fb67..0befad2 100644 (file)
          || (REGNO (operands[1]) & 1))
        {
          /* We normally copy the low-numbered register first.  However, if
-            the second register operand 0 is the same as the first register
-            of operand 1, we must copy in the opposite order.  */
-         if (REGNO (operands[0]) + 1 == REGNO (operands[1]))
-           return \"mov        %D0,%D1\;mov    %0,%1\";
+            the second source register is the same as the first destination
+            register, we must copy in the opposite order.  */
+         if (REGNO (operands[1]) + 1 == REGNO (operands[0]))
+           return \"mov        %D1,%D0\;mov    %1,%0\";
          else
-           return \"mov        %0,%1\;mov      %D0,%D1\";
+           return \"mov        %1,%0\;mov      %D1,%D0\";
        }
       else
        return \"movl   %1,%0\";
          || (REGNO (operands[1]) & 1))
        {
          /* We normally copy the low-numbered register first.  However, if
-            the second register operand 0 is the same as the first register
-            of operand 1, we must copy in the opposite order.  */
-         if (REGNO (operands[0]) + 1 == REGNO (operands[1]))
-           return \"mov        %D0,%D1\;mov    %0,%1\";
+            the second source register is the same as the first destination
+            register, we must copy in the opposite order.  */
+         if (REGNO (operands[1]) + 1 == REGNO (operands[0]))
+           return \"mov        %D1,%D0\;mov    %1,%0\";
          else
-           return \"mov        %0,%1\;mov      %D0,%D1\";
+           return \"mov        %1,%0\;mov      %D1,%D0\";
        }
       else
        return \"movl   %1,%0\";