diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-17 10:16:28 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-17 10:16:28 +0000 |
commit | e4fdb8b8ffddc1be3f6f796964bed03a77770829 (patch) | |
tree | 3997a00faa0bf783f01c7af4676120d664f75c0a /lib/Target | |
parent | aceb620de855485a4fb2eed343d880d76f6c701c (diff) | |
download | external_llvm-e4fdb8b8ffddc1be3f6f796964bed03a77770829.zip external_llvm-e4fdb8b8ffddc1be3f6f796964bed03a77770829.tar.gz external_llvm-e4fdb8b8ffddc1be3f6f796964bed03a77770829.tar.bz2 |
Mark rotl/rotr as expand. This generates pretty ugly code, but this is better than nothing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/MSP430/MSP430ISelLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/MSP430/MSP430ISelLowering.cpp b/lib/Target/MSP430/MSP430ISelLowering.cpp index 387cebf..14db20e 100644 --- a/lib/Target/MSP430/MSP430ISelLowering.cpp +++ b/lib/Target/MSP430/MSP430ISelLowering.cpp @@ -73,6 +73,10 @@ MSP430TargetLowering::MSP430TargetLowering(MSP430TargetMachine &tm) : setOperationAction(ISD::SRA, MVT::i16, Custom); setOperationAction(ISD::SHL, MVT::i16, Custom); setOperationAction(ISD::SRL, MVT::i16, Custom); + setOperationAction(ISD::ROTL, MVT::i8, Expand); + setOperationAction(ISD::ROTR, MVT::i8, Expand); + setOperationAction(ISD::ROTL, MVT::i16, Expand); + setOperationAction(ISD::ROTR, MVT::i16, Expand); setOperationAction(ISD::RET, MVT::Other, Custom); setOperationAction(ISD::GlobalAddress, MVT::i16, Custom); setOperationAction(ISD::ExternalSymbol, MVT::i16, Custom); |