Re: PowerPC V9 patches, Add the PCREL_OPT optimization

2019-12-06 Thread Segher Boessenkool
On Thu, Dec 05, 2019 at 10:14:13AM +1030, Alan Modra wrote: > On Wed, Dec 04, 2019 at 05:16:05PM -0600, Segher Boessenkool wrote: > > > pla 9,ext_symbol@pcrel # add (0),1 for optional operands > > > > pla does not have optional operands like that? > > It does, just like load/store insns. That

Re: PowerPC V9 patches, Add the PCREL_OPT optimization

2019-12-04 Thread Alan Modra
On Wed, Dec 04, 2019 at 05:16:05PM -0600, Segher Boessenkool wrote: > > pla 9,ext_symbol@pcrel # add (0),1 for optional operands > > pla does not have optional operands like that? It does, just like load/store insns. -- Alan Modra Australia Development Lab, IBM

Re: PowerPC V9 patches, Add the PCREL_OPT optimization

2019-12-04 Thread Segher Boessenkool
Hi Alan, Thanks for looking, and for the corrections :-) On Thu, Dec 05, 2019 at 09:26:09AM +1030, Alan Modra wrote: > On Mon, Dec 02, 2019 at 06:07:23PM -0600, Segher Boessenkool wrote: > > Is that "paddi" syntax correct? I think you might mean > > "paddi 9,0,ext_symbol,1", aka "pla 9,ext_symbo

Re: PowerPC V9 patches, Add the PCREL_OPT optimization

2019-12-04 Thread Alan Modra
On Mon, Dec 02, 2019 at 06:07:23PM -0600, Segher Boessenkool wrote: > Hi! > > On Fri, Nov 15, 2019 at 07:17:34PM -0500, Michael Meissner wrote: > > This series of patches adds the PCREL_OPT optimization for the PC-relative > > support in the PowerPC compiler. > > > > This optimization convert a s

Re: PowerPC V9 patches, Add the PCREL_OPT optimization

2019-12-02 Thread Segher Boessenkool
Hi! On Fri, Nov 15, 2019 at 07:17:34PM -0500, Michael Meissner wrote: > This series of patches adds the PCREL_OPT optimization for the PC-relative > support in the PowerPC compiler. > > This optimization convert a single load or store of an external variable to > use > the R_PPC64_PCREL_OPT relo