[llvm-bugs] [Bug 25839] New: __tls_get_addr gets called before saving return address
llvm-bugs at lists.llvm.org
Tue Dec 15 15:16:46 PST 2015
Bug ID: 25839
Summary: __tls_get_addr gets called before saving return
Component: Backend: PowerPC
Assignee: unassignedbugs at nondot.org
Reporter: timshen91 at gmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 15457
Minimized test case
For a PIC TLS variable access in a function, prologue (mflr followed by std and
stdu) gets scheduled after a __tls_get_addr call. __tls_get_addr messed up LR
and no one saves/restores it.
Should the fix be simply adding PPC::ADJCALLSTACKDOWN and PPC::ADJCALLSTACKUP
around __tls_get_addr? What should the stack size be (say, 0)?
Attached minimized test case that fails on trunk.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs