Use the correct register class for Cell varargs spilling. This fixes all of the

verifier failures in the CodeGen/CellSPU tests.

llvm-svn: 131631
This commit is contained in:
Cameron Zwarich 2011-05-19 04:44:19 +00:00
parent 6d9e1c7c2e
commit 9eb5a410bd
1 changed files with 1 additions and 1 deletions

View File

@ -1215,7 +1215,7 @@ SPUTargetLowering::LowerFormalArguments(SDValue Chain,
FuncInfo->setVarArgsFrameIndex(
MFI->CreateFixedObject(StackSlotSize, ArgOffset, true));
SDValue FIN = DAG.getFrameIndex(FuncInfo->getVarArgsFrameIndex(), PtrVT);
unsigned VReg = MF.addLiveIn(ArgRegs[ArgRegIdx], &SPU::R32CRegClass);
unsigned VReg = MF.addLiveIn(ArgRegs[ArgRegIdx], &SPU::VECREGRegClass);
SDValue ArgVal = DAG.getRegister(VReg, MVT::v16i8);
SDValue Store = DAG.getStore(Chain, dl, ArgVal, FIN, MachinePointerInfo(),
false, false, 0);