Request expansion of ConstantVec nodes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25773 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-01-29 06:32:58 +00:00
parent 3181a771ff
commit ec4a0c7c6b

View 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);