Fixed FP and SP usage. SP for outgoing args - for everything else FP
authorRuchira Sasanka <sasanka@students.uiuc.edu>
Sun, 11 Nov 2001 22:37:51 +0000 (22:37 +0000)
committerRuchira Sasanka <sasanka@students.uiuc.edu>
Sun, 11 Nov 2001 22:37:51 +0000 (22:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1258 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9RegInfo.cpp

index 9e830632dc0bbd882e38fbba1e2581864993d0c8..cb7009d4de0d8ffb640a68d95537b3bf07ecf847 100644 (file)
@@ -665,7 +665,7 @@ void UltraSparcRegInfo::colorCallArgs(const MachineInstr *const CallMI,
 
        int argOffset = PRA.mcInfo.allocateOptionalArg(target, LR->getType()); 
 
-       AdMI = cpReg2MemMI(UniLRReg, getFramePointer(), argOffset, RegType );
+       AdMI = cpReg2MemMI(UniLRReg, getStackPointer(), argOffset, RegType );
       }
 
       AddedInstrnsBefore.push_back( AdMI );  // Now add the instruction
@@ -716,7 +716,7 @@ void UltraSparcRegInfo::colorCallArgs(const MachineInstr *const CallMI,
        Ad1 = cpReg2MemMI(TReg, getFramePointer(), TmpOff, RegType );
        Ad2 = cpMem2RegMI(getFramePointer(), LR->getSpillOffFromFP(), 
                          TReg, RegType ); 
-       Ad3 = cpReg2MemMI(TReg, getFramePointer(), argOffset, RegType );
+       Ad3 = cpReg2MemMI(TReg, getStackPointer(), argOffset, RegType );
        Ad4 = cpMem2RegMI(getFramePointer(), TmpOff, TReg, RegType ); 
 
        // We directly add to CallAI->InstrnsBefore instead of adding to