On Thu, Jul 3, 2025 at 3:14 PM H.J. Lu <hjl.to...@gmail.com> wrote:
>
> On Thu, Jul 3, 2025 at 2:39 PM Uros Bizjak <ubiz...@gmail.com> wrote:
> >
> > On Thu, Jul 3, 2025 at 6:32 AM H.J. Lu <hjl.to...@gmail.com> wrote:
> > >
> > > *tls_local_dynamic_64_<mode> uses RDI as the __tls_get_addr argument.
> > > Add RDI clobber to tls_local_dynamic_64 patterns to show it.
> > >
> > > PR target/120908
> > > * config/i386/i386.cc (legitimize_tls_address): Pass RDI to
> > > gen_tls_local_dynamic_64.
> > > * config/i386/i386.md (*tls_local_dynamic_64_<mode>): Add RDI
> > > clobber and use it to generate LEA.
> > > (@tls_local_dynamic_64_<mode>): Add a clobber.
> >
> > *tls_local_dynamic_base_64_largepic needs the same treatment.
> >
> > > OK for master?
> >
> > OK with *tls_local_dynamic_base_64_largepic also fixed.
> >
> > Thanks,
> > Uros.
>
> This is the patch I am checking in with a test.  I added RDI clobber
> to *tls_global_dynamic_64_largepic and *tls_local_dynamic_base_64_largepic
> to avoid unrecognizable insn in the test.
>
> Thanks.
>
> --
> H.J.

I will backport it to release branches next week.

-- 
H.J.

Reply via email to