summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-02-20 22:33:27 +0000
committerdim <dim@FreeBSD.org>2014-02-20 22:33:27 +0000
commitf57ada5ef09c448935fafbc43a7b7bb4618b422f (patch)
tree31285e633de9c6d934f7a7a28be5b7e68d643aa8
parent7a21bf645bb41c26775d255b7045211cef4e3ff2 (diff)
downloadFreeBSD-src-f57ada5ef09c448935fafbc43a7b7bb4618b422f.zip
FreeBSD-src-f57ada5ef09c448935fafbc43a7b7bb4618b422f.tar.gz
Pull in r201718 from upstream llvm trunk:
Expand 64bit {SHL,SHR,SRA}_PARTS on sparcv9. Submitted by: rdivacky
-rw-r--r--contrib/llvm/lib/Target/Sparc/SparcISelLowering.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/llvm/lib/Target/Sparc/SparcISelLowering.cpp b/contrib/llvm/lib/Target/Sparc/SparcISelLowering.cpp
index 9f6dc5c..283bff6 100644
--- a/contrib/llvm/lib/Target/Sparc/SparcISelLowering.cpp
+++ b/contrib/llvm/lib/Target/Sparc/SparcISelLowering.cpp
@@ -1555,6 +1555,10 @@ SparcTargetLowering::SparcTargetLowering(TargetMachine &TM)
setOperationAction(ISD::UMULO, MVT::i64, Custom);
setOperationAction(ISD::SMULO, MVT::i64, Custom);
+
+ setOperationAction(ISD::SHL_PARTS, MVT::i64, Expand);
+ setOperationAction(ISD::SRA_PARTS, MVT::i64, Expand);
+ setOperationAction(ISD::SRL_PARTS, MVT::i64, Expand);
}
// VASTART needs to be custom lowered to use the VarArgsFrameIndex.
OpenPOWER on IntegriCloud