From 62db116933dbc2ac61389329c39ccd00d15f066b Mon Sep 17 00:00:00 2001 From: Richard Osborne Date: Thu, 15 Jan 2009 11:18:53 +0000 Subject: [PATCH] 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 --- lib/Target/XCore/XCoreInstrInfo.cpp | 2 +- lib/Target/XCore/XCoreRegisterInfo.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Target/XCore/XCoreInstrInfo.cpp b/lib/Target/XCore/XCoreInstrInfo.cpp index 4e44abdecd2..545a2852dc9 100644 --- a/lib/Target/XCore/XCoreInstrInfo.cpp +++ b/lib/Target/XCore/XCoreInstrInfo.cpp @@ -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 && diff --git a/lib/Target/XCore/XCoreRegisterInfo.cpp b/lib/Target/XCore/XCoreRegisterInfo.cpp index d40404e2fe9..d93dad83a8c 100644 --- a/lib/Target/XCore/XCoreRegisterInfo.cpp +++ b/lib/Target/XCore/XCoreRegisterInfo.cpp @@ -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.