Request expansion of ConstantVec nodes.

llvm-svn: 25773
This commit is contained in:
Chris Lattner 2006-01-29 06:32:58 +00:00
parent 758b0ac54b
commit d33c60b52b
1 changed files with 5 additions and 0 deletions

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