Re: [PATCH] V7, #4 of 7, Add explicit (0),1 to @pcrel references

2019-11-25 Thread Alan Modra
On Mon, Nov 25, 2019 at 07:05:02PM -0600, Segher Boessenkool wrote: > On Mon, Nov 25, 2019 at 05:52:29PM -0500, Michael Meissner wrote: > > If you write: > > > > paddi 10,9,foo@pcrel > > > > The assembler will interpret this as: > > > > paddi 10,9,(.-foo),0 foo-. actually. > > I.e. it

Re: [PATCH] V7, #4 of 7, Add explicit (0),1 to @pcrel references

2019-11-25 Thread Segher Boessenkool
On Mon, Nov 25, 2019 at 05:52:29PM -0500, Michael Meissner wrote: > On Fri, Nov 22, 2019 at 06:52:42PM -0600, Segher Boessenkool wrote: > > On Thu, Nov 14, 2019 at 05:51:14PM -0500, Michael Meissner wrote: > > > In some of my previous work, I had make a mistake forgetting that the > > > PADDI > >

Re: [PATCH] V7, #4 of 7, Add explicit (0),1 to @pcrel references

2019-11-25 Thread Michael Meissner
On Fri, Nov 22, 2019 at 06:52:42PM -0600, Segher Boessenkool wrote: > On Thu, Nov 14, 2019 at 05:51:14PM -0500, Michael Meissner wrote: > > In some of my previous work, I had make a mistake forgetting that the PADDI > > instruction did not allow adding a PC-relative reference to a register (you >

Re: [PATCH] V7, #4 of 7, Add explicit (0),1 to @pcrel references

2019-11-22 Thread Segher Boessenkool
On Thu, Nov 14, 2019 at 05:51:14PM -0500, Michael Meissner wrote: > In some of my previous work, I had make a mistake forgetting that the PADDI > instruction did not allow adding a PC-relative reference to a register (you > can > either load up a PC-relative address without adding a register, or y

[PATCH] V7, #4 of 7, Add explicit (0),1 to @pcrel references

2019-11-14 Thread Michael Meissner
In some of my previous work, I had make a mistake forgetting that the PADDI instruction did not allow adding a PC-relative reference to a register (you can either load up a PC-relative address without adding a register, or you can add a register to a constant). The assembler allowed the instructio