From d33c60b52bf526c310933e5f435b83faffb21e71 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 29 Jan 2006 06:32:58 +0000 Subject: [PATCH] Request expansion of ConstantVec nodes. llvm-svn: 25773 --- llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 83297bada588..2c3a07288965 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -153,6 +153,11 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM) if (TM.getSubtarget().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);