Mark vector pow, ctpop, cttz, and ctlz as Expand on PowerPC.
authorDan Gohman <gohman@apple.com>
Fri, 12 Oct 2007 14:08:57 +0000 (14:08 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 12 Oct 2007 14:08:57 +0000 (14:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42904 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index ca1982fe6ea1e2de5073be3e98707a3e8e5fd3b9..bd43d497d2d847bf0baa17749f3c1ca902354755 100644 (file)
@@ -284,8 +284,11 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
       setOperationAction(ISD::SMUL_LOHI, (MVT::ValueType)VT, Expand);
       setOperationAction(ISD::UDIVREM, (MVT::ValueType)VT, Expand);
       setOperationAction(ISD::SDIVREM, (MVT::ValueType)VT, Expand);
-
       setOperationAction(ISD::SCALAR_TO_VECTOR, (MVT::ValueType)VT, Expand);
+      setOperationAction(ISD::FPOW, (MVT::ValueType)VT, Expand);
+      setOperationAction(ISD::CTPOP, (MVT::ValueType)VT, Expand);
+      setOperationAction(ISD::CTLZ, (MVT::ValueType)VT, Expand);
+      setOperationAction(ISD::CTTZ, (MVT::ValueType)VT, Expand);
     }
 
     // We can custom expand all VECTOR_SHUFFLEs to VPERM, others we can handle