[llvm-commits] [llvm] r70753 - /llvm/trunk/lib/Target/MSP430/MSP430InstrInfo.td
Anton Korobeynikov
asl at math.spbu.ru
Sun May 3 06:15:04 PDT 2009
Author: asl
Date: Sun May 3 08:15:03 2009
New Revision: 70753
URL: http://llvm.org/viewvc/llvm-project?rev=70753&view=rev
Log:
Implement bswap
Modified:
llvm/trunk/lib/Target/MSP430/MSP430InstrInfo.td
Modified: llvm/trunk/lib/Target/MSP430/MSP430InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430InstrInfo.td?rev=70753&r1=70752&r2=70753&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430InstrInfo.td (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430InstrInfo.td Sun May 3 08:15:03 2009
@@ -602,13 +602,12 @@
[(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}",
More information about the llvm-commits
mailing list