mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 18:31:23 +00:00
Update the operands used when building LDAWSP instructions to match the .td
changes in the last commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62257 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b67e6b3b65
commit
62db116933
@ -363,7 +363,7 @@ bool XCoreInstrInfo::copyRegToReg(MachineBasicBlock &MBB,
|
||||
|
||||
if (SrcRC == XCore::RRegsRegisterClass && SrcReg == XCore::SP &&
|
||||
DestRC == XCore::GRRegsRegisterClass) {
|
||||
BuildMI(MBB, I, get(XCore::LDAWSP_ru6), DestReg).addImm(0).addImm(0);
|
||||
BuildMI(MBB, I, get(XCore::LDAWSP_ru6), DestReg).addImm(0);
|
||||
return true;
|
||||
}
|
||||
if (DestRC == XCore::RRegsRegisterClass && DestReg == XCore::SP &&
|
||||
|
@ -481,7 +481,6 @@ void XCoreRegisterInfo::emitPrologue(MachineFunction &MF) const {
|
||||
// Set the FP from the SP.
|
||||
unsigned FramePtr = XCore::R10;
|
||||
BuildMI(MBB, MBBI, TII.get(XCore::LDAWSP_ru6), FramePtr)
|
||||
.addImm(0)
|
||||
.addImm(0);
|
||||
if (emitFrameMoves) {
|
||||
// Show FP is now valid.
|
||||
|
Loading…
Reference in New Issue
Block a user