diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-03 13:15:03 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-03 13:15:03 +0000 |
commit | 49ebc2278472656e05541248eaedccb13e1b7d7d (patch) | |
tree | 66544061766504e60b51966e0ae86a16e4950ed7 /lib/Target/MSP430 | |
parent | 5d59f68ade7573175f1ace09061a94286e59076b (diff) | |
download | external_llvm-49ebc2278472656e05541248eaedccb13e1b7d7d.zip external_llvm-49ebc2278472656e05541248eaedccb13e1b7d7d.tar.gz external_llvm-49ebc2278472656e05541248eaedccb13e1b7d7d.tar.bz2 |
Implement bswap
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70753 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430')
-rw-r--r-- | lib/Target/MSP430/MSP430InstrInfo.td | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Target/MSP430/MSP430InstrInfo.td b/lib/Target/MSP430/MSP430InstrInfo.td index 63576b0..df60209 100644 --- a/lib/Target/MSP430/MSP430InstrInfo.td +++ b/lib/Target/MSP430/MSP430InstrInfo.td @@ -602,13 +602,12 @@ def SEXT16r : Pseudo<(outs GR16:$dst), (ins GR16:$src), [(set GR16:$dst, (sext_inreg GR16:$src, i8)), (implicit SRW)]>; -//def SEXT16r : Pseudo<(outs GR16:$dst), (ins GR16:$src), -// "sxt\t$dst", -// [(set GR16:$dst, (sext_inreg GR16:$src, i8)), -// (implicit SRW)]>; - } // Defs = [SRW] +def SWPB16r : Pseudo<(outs GR16:$dst), (ins GR16:$src), + "swpb\t$dst", + [(set GR16:$dst, (bswap GR16:$src))]>; + let isCommutable = 1 in { // X = OR Y, Z == X = OR Z, Y def OR8rr : Pseudo<(outs GR8:$dst), (ins GR8:$src1, GR8:$src2), "bis.b\t{$src2, $dst}", |