Re: [PATCH][PR target/94542]Don't allow PC-relative addressing for TLS data

2020-04-14 Thread Segher Boessenkool
Hi! On Fri, Apr 10, 2020 at 06:00:45PM -0500, acsawdey wrote: > One of the things that address_to_insn_form() is used for is determining > whether a PC-relative addressing instruction could be used. In > particular predicate pcrel_external_address and function > prefixed_paddi_p() both use it f

Re: [PATCH][PR target/94542]Don't allow PC-relative addressing for TLS data

2020-04-13 Thread acsawdey via Gcc-patches
On 2020-04-13 10:08, will schmidt wrote: On Fri, 2020-04-10 at 18:00 -0500, acsawdey via Gcc-patches wrote: diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 2b6613bcb7e..c77e60a718f 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -24824,15 +2

Re: [PATCH][PR target/94542]Don't allow PC-relative addressing for TLS data

2020-04-13 Thread will schmidt via Gcc-patches
On Fri, 2020-04-10 at 18:00 -0500, acsawdey via Gcc-patches wrote: > One of the things that address_to_insn_form() is used for is > determining > whether a PC-relative addressing instruction could be used. In > particular predicate pcrel_external_address and function > prefixed_paddi_p() both us

[PATCH][PR target/94542]Don't allow PC-relative addressing for TLS data

2020-04-10 Thread acsawdey via Gcc-patches
One of the things that address_to_insn_form() is used for is determining whether a PC-relative addressing instruction could be used. In particular predicate pcrel_external_address and function prefixed_paddi_p() both use it for this purpose. So what emerged in PR/94542 is that it should be look