Patch to fix a crash in the PowerPC back end due to ISD::ROTL and ISD::ROTR
[oota-llvm.git] / lib / Target / PowerPC / PPCISelLowering.cpp
index 72a3fbe83e13e34cd681f39f9b8d9e6ca3e4422a..176a8b3ea59b976e6e1557afbc79391b59c617cb 100644 (file)
@@ -479,6 +479,8 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
       setOperationAction(ISD::CTTZ_ZERO_UNDEF, VT, Expand);
       setOperationAction(ISD::VSELECT, VT, Expand);
       setOperationAction(ISD::SIGN_EXTEND_INREG, VT, Expand);
+      setOperationAction(ISD::ROTL, VT, Expand);
+      setOperationAction(ISD::ROTR, VT, Expand);
 
       for (MVT InnerVT : MVT::vector_valuetypes()) {
         setTruncStoreAction(VT, InnerVT, Expand);