OSDN Git Service

Expand rotate instructions on sparcv9 as well.
authorRoman Divacky <rdivacky@freebsd.org>
Tue, 12 Nov 2013 19:04:45 +0000 (19:04 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Tue, 12 Nov 2013 19:04:45 +0000 (19:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194500 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcISelLowering.cpp

index fe5c7cb..219d906 100644 (file)
@@ -1409,6 +1409,8 @@ SparcTargetLowering::SparcTargetLowering(TargetMachine &TM)
     setOperationAction(ISD::CTLZ , MVT::i64, Expand);
     setOperationAction(ISD::CTLZ_ZERO_UNDEF, MVT::i64, Expand);
     setOperationAction(ISD::BSWAP, MVT::i64, Expand);
+    setOperationAction(ISD::ROTL , MVT::i64, Expand);
+    setOperationAction(ISD::ROTR , MVT::i64, Expand);
   }
 
   // FIXME: There are instructions available for ATOMIC_FENCE