diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-29 06:32:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-29 06:32:58 +0000 |
commit | ec4a0c7c6bd689572d8f432950867e6ee9d777f4 (patch) | |
tree | 7a99658d4f034e1c23b89250e538d7d6c5f3a03e | |
parent | 3181a771ff5b2090b7ed55f9b18a684ea8fe625a (diff) |
Request expansion of ConstantVec nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25773 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 83297bada5..2c3a072889 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -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); |