forked from OSchip/llvm-project
Update the operands used when building LDAWSP instructions to match the .td
changes in the last commit. llvm-svn: 62257
This commit is contained in:
parent
08a4c281cb
commit
502b91a35c
|
@ -363,7 +363,7 @@ bool XCoreInstrInfo::copyRegToReg(MachineBasicBlock &MBB,
|
||||||
|
|
||||||
if (SrcRC == XCore::RRegsRegisterClass && SrcReg == XCore::SP &&
|
if (SrcRC == XCore::RRegsRegisterClass && SrcReg == XCore::SP &&
|
||||||
DestRC == XCore::GRRegsRegisterClass) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
if (DestRC == XCore::RRegsRegisterClass && DestReg == XCore::SP &&
|
if (DestRC == XCore::RRegsRegisterClass && DestReg == XCore::SP &&
|
||||||
|
|
|
@ -481,7 +481,6 @@ void XCoreRegisterInfo::emitPrologue(MachineFunction &MF) const {
|
||||||
// Set the FP from the SP.
|
// Set the FP from the SP.
|
||||||
unsigned FramePtr = XCore::R10;
|
unsigned FramePtr = XCore::R10;
|
||||||
BuildMI(MBB, MBBI, TII.get(XCore::LDAWSP_ru6), FramePtr)
|
BuildMI(MBB, MBBI, TII.get(XCore::LDAWSP_ru6), FramePtr)
|
||||||
.addImm(0)
|
|
||||||
.addImm(0);
|
.addImm(0);
|
||||||
if (emitFrameMoves) {
|
if (emitFrameMoves) {
|
||||||
// Show FP is now valid.
|
// Show FP is now valid.
|
||||||
|
|
Loading…
Reference in New Issue