diff options
| author | Nate Begeman <natebegeman@mac.com> | 2004-09-02 08:13:00 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2004-09-02 08:13:00 +0000 |
| commit | 6173878304c7f2807cbea113bf76455087abc213 (patch) | |
| tree | 89ec978364c66421ad18d906cf00aa4f0d815292 /llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp | |
| parent | 7063868e2a6d3c08209319e73c5c6a27c744c8ea (diff) | |
| download | bcm5719-llvm-6173878304c7f2807cbea113bf76455087abc213.tar.gz bcm5719-llvm-6173878304c7f2807cbea113bf76455087abc213.zip | |
Convert remaining X-Form and Pseudo instructions over to asm writer
llvm-svn: 16142
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp b/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp index 5ba7a5beeb2..2a13bfbd929 100644 --- a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp +++ b/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp @@ -532,8 +532,8 @@ void ISel::copyGlobalBaseToRegister(MachineBasicBlock *MBB, MachineBasicBlock &FirstMBB = F->front(); MachineBasicBlock::iterator MBBI = FirstMBB.begin(); GlobalBaseReg = makeAnotherReg(Type::IntTy); - BuildMI(FirstMBB, MBBI, PPC::IMPLICIT_DEF, 0, PPC::LR); - BuildMI(FirstMBB, MBBI, PPC::MovePCtoLR, 0, GlobalBaseReg); + BuildMI(FirstMBB, MBBI, PPC::MovePCtoLR, 0, PPC::LR); + BuildMI(FirstMBB, MBBI, PPC::MFLR, 0, GlobalBaseReg).addReg(PPC::LR); GlobalBaseInitialized = true; } // Emit our copy of GlobalBaseReg to the destination register in the |

