diff options
author | Richard Osborne <richard@xmos.com> | 2013-01-25 21:20:28 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2013-01-25 21:20:28 +0000 |
commit | 0f1bcedf5a871c360f2ca1354464d81cb81bdca7 (patch) | |
tree | 0f2f0339e8167749c4becb8e16f38aac4a956f72 /lib/Target/XCore/XCoreInstrInfo.td | |
parent | a965baca3c7ce1ced00446cff1c6395d03dfed52 (diff) | |
download | llvm-0f1bcedf5a871c360f2ca1354464d81cb81bdca7.tar.gz llvm-0f1bcedf5a871c360f2ca1354464d81cb81bdca7.tar.bz2 llvm-0f1bcedf5a871c360f2ca1354464d81cb81bdca7.tar.xz |
Fix order of operands for crc8_l4r
The order in which operands appear in the encoded instruction is different
to order in which they appear in assembly. This changes the XCore backend to
use the instruction encoding order.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173493 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreInstrInfo.td')
-rw-r--r-- | lib/Target/XCore/XCoreInstrInfo.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/XCore/XCoreInstrInfo.td b/lib/Target/XCore/XCoreInstrInfo.td index 1810a13834..89845bc74d 100644 --- a/lib/Target/XCore/XCoreInstrInfo.td +++ b/lib/Target/XCore/XCoreInstrInfo.td @@ -477,10 +477,10 @@ def MACCS_l4r : _L4R<(outs GRRegs:$dst1, GRRegs:$dst2), []>; } -let Constraints = "$src1 = $dst1" in +let Constraints = "$src1 = $dst2" in def CRC8_l4r : _L4R<(outs GRRegs:$dst1, GRRegs:$dst2), (ins GRRegs:$src1, GRRegs:$src2, GRRegs:$src3), - "crc8 $dst1, $dst2, $src2, $src3", + "crc8 $dst2, $dst1, $src2, $src3", []>; // Five operand long |