diff options
Diffstat (limited to 'lib/Target/MSP430/MSP430InstrInfo.td')
-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}", |