[llvm] r194500 - Expand rotate instructions on sparcv9 as well.

Roman Divacky rdivacky at freebsd.org
Tue Nov 12 11:04:45 PST 2013


Author: rdivacky
Date: Tue Nov 12 13:04:45 2013
New Revision: 194500

URL: http://llvm.org/viewvc/llvm-project?rev=194500&view=rev
Log:
Expand rotate instructions on sparcv9 as well.

Modified:
    llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp

Modified: llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp?rev=194500&r1=194499&r2=194500&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp Tue Nov 12 13:04:45 2013
@@ -1409,6 +1409,8 @@ SparcTargetLowering::SparcTargetLowering
     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





More information about the llvm-commits mailing list