mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Loads are relocatable too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b765ff1219
commit
00a8c01999
@ -197,7 +197,8 @@ int PPC32CodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) {
|
||||
assert(MovePCtoLROffset && "MovePCtoLR not seen yet?");
|
||||
Reloc = PPC::reloc_absolute_loadhi;
|
||||
Offset = -((intptr_t)MovePCtoLROffset+4);
|
||||
} else if (MI.getOpcode() == PPC::LA) {
|
||||
} else if (MI.getOpcode() == PPC::LA || MI.getOpcode() == PPC::LWZ ||
|
||||
MI.getOpcode() == PPC::LFS || MI.getOpcode() == PPC::LFD) {
|
||||
assert(MovePCtoLROffset && "MovePCtoLR not seen yet?");
|
||||
Reloc = PPC::reloc_absolute_la;
|
||||
Offset = -((intptr_t)MovePCtoLROffset+4);
|
||||
|
Loading…
Reference in New Issue
Block a user