mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Loads are relocatable too
llvm-svn: 18198
This commit is contained in:
parent
ef7794a7c6
commit
2c1b140d62
@ -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…
x
Reference in New Issue
Block a user