mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-24 20:44:51 +00:00
Hook up one type, v4f32, to the VR RegisterClass for now.
llvm-svn: 24517
This commit is contained in:
parent
16a1c53abc
commit
9a781caa20
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user