mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
[PowerPC] Handle 32-bit targets properly in PPCTLSDynamicCall.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228116 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c27a1d9ccb
commit
89e8a17b4d
@ -56,7 +56,9 @@ protected:
|
||||
MachineInstr *MI = I;
|
||||
|
||||
if (MI->getOpcode() != PPC::GETtlsADDR &&
|
||||
MI->getOpcode() != PPC::GETtlsldADDR)
|
||||
MI->getOpcode() != PPC::GETtlsldADDR &&
|
||||
MI->getOpcode() != PPC::GETtlsADDR32 &&
|
||||
MI->getOpcode() != PPC::GETtlsldADDR32)
|
||||
continue;
|
||||
|
||||
DEBUG(dbgs() << "TLS Dynamic Call Fixup:\n " << *MI;);
|
||||
|
@ -25,12 +25,12 @@ entry:
|
||||
; OPT0: addis [[REG2:[0-9]+]], 3, a@dtprel@ha
|
||||
; OPT0: addi {{[0-9]+}}, [[REG2]], a@dtprel@l
|
||||
; OPT0-32-LABEL: main
|
||||
; OPT0-32: addi {{[0-9]+}}, {{[0-9]+}}, a@got@tlsld
|
||||
; OPT0-32: addi 3, {{[0-9]+}}, a@got@tlsld
|
||||
; OPT0-32: bl __tls_get_addr(a@tlsld)@PLT
|
||||
; OPT0-32: addis [[REG:[0-9]+]], 3, a@dtprel@ha
|
||||
; OPT0-32: addi {{[0-9]+}}, [[REG]], a@dtprel@l
|
||||
; OPT1-32-LABEL: main
|
||||
; OPT1-32: addi {{[0-9]+}}, {{[0-9]+}}, a@got@tlsld
|
||||
; OPT1-32: addi 3, {{[0-9]+}}, a@got@tlsld
|
||||
; OPT1-32: bl __tls_get_addr(a@tlsld)@PLT
|
||||
; OPT1-32: addis [[REG:[0-9]+]], 3, a@dtprel@ha
|
||||
; OPT1-32: addi {{[0-9]+}}, [[REG]], a@dtprel@l
|
||||
|
Loading…
x
Reference in New Issue
Block a user