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:
Richard Osborne 2009-01-15 11:18:53 +00:00
parent 08a4c281cb
commit 502b91a35c
2 changed files with 1 additions and 2 deletions

View File

@ -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 &&

View File

@ -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.