fix mmx handling bug

llvm-svn: 37533
This commit is contained in:
Chris Lattner 2007-06-09 05:01:50 +00:00
parent d18b16034a
commit a4a49e37ab
1 changed files with 4 additions and 1 deletions

View File

@ -1183,7 +1183,10 @@ X86TargetLowering::LowerX86_64CCCArguments(SDOperand Op, SelectionDAG &DAG) {
RC = X86::FR64RegisterClass;
else {
assert(MVT::isVector(RegVT));
RC = X86::VR128RegisterClass;
if (MVT::getSizeInBits(RegVT) == 64)
RC = X86::VR64RegisterClass;
else
RC = X86::VR128RegisterClass;
}
unsigned Reg = AddLiveIn(DAG.getMachineFunction(), VA.getLocReg(), RC);