summaryrefslogtreecommitdiff
path: root/lib/Target/MSP430/MSP430InstrInfo.td
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:15:03 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:15:03 +0000
commit49ebc2278472656e05541248eaedccb13e1b7d7d (patch)
tree66544061766504e60b51966e0ae86a16e4950ed7 /lib/Target/MSP430/MSP430InstrInfo.td
parent5d59f68ade7573175f1ace09061a94286e59076b (diff)
downloadllvm-49ebc2278472656e05541248eaedccb13e1b7d7d.tar.gz
llvm-49ebc2278472656e05541248eaedccb13e1b7d7d.tar.bz2
llvm-49ebc2278472656e05541248eaedccb13e1b7d7d.tar.xz
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/MSP430InstrInfo.td')
-rw-r--r--lib/Target/MSP430/MSP430InstrInfo.td9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Target/MSP430/MSP430InstrInfo.td b/lib/Target/MSP430/MSP430InstrInfo.td
index 63576b0b21..df60209d3d 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}",