diff options
author | Hal Finkel <hfinkel@anl.gov> | 2011-12-07 06:32:37 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2011-12-07 06:32:37 +0000 |
commit | 2ba61e47a9334070bc9c160c99f30d4b9da319fe (patch) | |
tree | 5d025ea8d5d72883f8281b36caa411972b982ae4 /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | |
parent | 7910d7b72a016493a03401025335833ac6d9baa1 (diff) | |
download | bcm5719-llvm-2ba61e47a9334070bc9c160c99f30d4b9da319fe.tar.gz bcm5719-llvm-2ba61e47a9334070bc9c160c99f30d4b9da319fe.zip |
64-bit LR8 load should use X11 not R11
llvm-svn: 146021
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp index fe103c65771..ab7f77dc6a2 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -377,7 +377,7 @@ PPCInstrInfo::StoreRegToStackSlot(MachineFunction &MF, FrameIdx)); } else { // FIXME: this spills LR immediately to memory in one step. To do this, - // we use R11, which we know cannot be used in the prolog/epilog. This is + // we use X11, which we know cannot be used in the prolog/epilog. This is // a hack. NewMIs.push_back(BuildMI(MF, DL, get(PPC::MFLR8), PPC::X11)); NewMIs.push_back(addFrameReference(BuildMI(MF, DL, get(PPC::STD)) @@ -531,8 +531,8 @@ PPCInstrInfo::LoadRegFromStackSlot(MachineFunction &MF, DebugLoc DL, FrameIdx)); } else { NewMIs.push_back(addFrameReference(BuildMI(MF, DL, get(PPC::LD), - PPC::R11), FrameIdx)); - NewMIs.push_back(BuildMI(MF, DL, get(PPC::MTLR8)).addReg(PPC::R11)); + PPC::X11), FrameIdx)); + NewMIs.push_back(BuildMI(MF, DL, get(PPC::MTLR8)).addReg(PPC::X11)); } } else if (PPC::F8RCRegisterClass->hasSubClassEq(RC)) { NewMIs.push_back(addFrameReference(BuildMI(MF, DL, get(PPC::LFD), DestReg), |