Bug fix: incorrect SAVE instruction when using register for stack size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2002-08-01 14:26:11 +00:00
parent 747b3bdc85
commit a4704045e8

View File

@ -115,7 +115,7 @@ void InsertPrologEpilogCode::InsertPrologCode(Function &F)
// Now generate the SAVE using the value in register %l0
M = new MachineInstr(SAVE);
M->SetMachineOperandReg(0, Target.getRegInfo().getStackPointer());
M->SetMachineOperandReg(1, MachineOperand::MO_MachineRegister, uregNum);
M->SetMachineOperandReg(1, uregNum);
M->SetMachineOperandReg(2, Target.getRegInfo().getStackPointer());
mvec.push_back(M);
}