diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-13 19:07:17 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-13 19:07:17 -0400 |
commit | 004135d07fa87833da039cdd6fc26aa225cca695 (patch) | |
tree | b5f69e660e050f8e7026ac3339f20456a560923a | |
parent | 0813543abde7ee08e413dfbc2cece507fbf6c8c4 (diff) | |
download | gcc-004135d07fa87833da039cdd6fc26aa225cca695.zip gcc-004135d07fa87833da039cdd6fc26aa225cca695.tar.gz gcc-004135d07fa87833da039cdd6fc26aa225cca695.tar.bz2 |
(movdi matchers): Fix src/dest order in unaligned reg->reg case.
From-SVN: r10223
-rw-r--r-- | gcc/config/i960/i960.md | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/config/i960/i960.md b/gcc/config/i960/i960.md index a86fb67..0befad2 100644 --- a/gcc/config/i960/i960.md +++ b/gcc/config/i960/i960.md @@ -825,12 +825,12 @@ || (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\"; @@ -882,12 +882,12 @@ || (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\"; |