Teach the JIT how to relocate LI, this fixes the JIT on Prolangs-C/TimberWolfMC
authorChris Lattner <sabre@nondot.org>
Sat, 22 Apr 2006 06:17:56 +0000 (06:17 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 22 Apr 2006 06:17:56 +0000 (06:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27943 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCCodeEmitter.cpp

index fb269e960544f26a5c991cc1d46d125146e251f2..8d4e1b669a36db77314673d3bf15cb4cf7db634e 100644 (file)
@@ -166,6 +166,7 @@ int PPCCodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) {
       case PPC::LIS:
         Reloc = PPC::reloc_absolute_high;       // Pointer to symbol
         break;
+      case PPC::LI:
       case PPC::LA:
       case PPC::LBZ:
       case PPC::LHA: