mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
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:
parent
747b3bdc85
commit
a4704045e8
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user