[PPC64] mflr gets scheduled after __tls_get_addr call

Hi,

I got a minimized test case that’s causing miscompiled TLS initialization code: https://gist.github.com/innocentim/939ebbff1e312801bafe

Should I just insert PPC::STACKCALLDOWN AND PPC::STACKCALLUP into ppc-tls-dynamic-call? I’m not quite sure if the frame size is simply 0?

Thanks!

Sorry, they are PPC::ADJCALLSTACKDOWN and PPC::ADJCALLSTACKUP.

You should probably open a bug report.

Cheers,
Rafael