Request expansion of ConstantVec nodes.
authorChris Lattner <sabre@nondot.org>
Sun, 29 Jan 2006 06:32:58 +0000 (06:32 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 29 Jan 2006 06:32:58 +0000 (06:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25773 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index 83297bada58851591cce111f9a4eb37f185184fb..2c3a07288965229d08ea5bdfbea452e4c7a3b082 100644 (file)
@@ -153,6 +153,11 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM)
   if (TM.getSubtarget<PPCSubtarget>().hasAltivec()) {
     addRegisterClass(MVT::v4f32, PPC::VRRCRegisterClass);
     addRegisterClass(MVT::v4i32, PPC::VRRCRegisterClass);
+    
+    // FIXME: We don't support any ConstantVec's yet.  We should custom expand
+    // the ones we do!
+    setOperationAction(ISD::ConstantVec, MVT::v4f32, Expand);
+    setOperationAction(ISD::ConstantVec, MVT::v4i32, Expand);
   }
   
   setSetCCResultContents(ZeroOrOneSetCCResult);