Hook up one type, v4f32, to the VR RegisterClass for now.

llvm-svn: 24517
This commit is contained in:
Nate Begeman 2005-11-29 08:17:20 +00:00
parent 16a1c53abc
commit 9a781caa20

View File

@ -121,6 +121,12 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM)
setOperationAction(ISD::SRA, MVT::i64, Custom);
}
if (TM.getSubtarget<PPCSubtarget>().hasAltivec()) {
// FIXME: AltiVec supports a wide variety of packed types. For now, we're
// bringing up support with just v4f32.
addRegisterClass(MVT::v4f32, PPC::VRRCRegisterClass);
}
setSetCCResultContents(ZeroOrOneSetCCResult);
computeRegisterProperties();