Re: Even numbered register pairs restriction on some instructions

2018-09-03 Thread Paul Koning
> On Sep 3, 2018, at 1:25 PM, Matthew Malcomson > wrote: > >>> >>> Thanks for the suggestions, >>> I've had a look into these, and unfortunately it seems they have the same >>> problem I've been hitting before. >>> >>> The use of the TARGET_HARD_REGNO_MODE_OK macro limits all uses of regis

Re: Even numbered register pairs restriction on some instructions

2018-09-03 Thread Matthew Malcomson
Thanks for the suggestions, I've had a look into these, and unfortunately it seems they have the same problem I've been hitting before. The use of the TARGET_HARD_REGNO_MODE_OK macro limits all uses of registers in a given mode (so that we wouldn't be able to use register pairs beginning wit

Re: Even numbered register pairs restriction on some instructions

2018-09-03 Thread Paul Koning
> On Sep 3, 2018, at 12:10 PM, Matthew Malcomson > wrote: > >> >> I think you can use pdp11 as an example, it does two things that are similar >> to what you're describing. >> >> One is that it requires SImode to go into an even regno, and indicates that >> it uses two registers. See TAR

Re: Even numbered register pairs restriction on some instructions

2018-09-03 Thread Matthew Malcomson
I think you can use pdp11 as an example, it does two things that are similar to what you're describing. One is that it requires SImode to go into an even regno, and indicates that it uses two registers. See TARGET_HARD_REGNO_MODE_OK and TARGET_HARD_REGNO_NREGS. The other is that it has one

Re: Even numbered register pairs restriction on some instructions

2018-08-31 Thread Peter Bergner
On 8/31/18 10:41 AM, Matthew Malcomson wrote: > I'm looking into whether it's possible to require even numbered registers on > modes that need more than one hard-register to represent them. But only in > some cases. Yes, it's possible. You can look at TDmode (128-bit decimal floating point) on po

Re: Even numbered register pairs restriction on some instructions

2018-08-31 Thread Paul Koning
> On Aug 31, 2018, at 11:41 AM, Matthew Malcomson > wrote: > > Hi there, > > I'm looking into whether it's possible to require even numbered registers on > modes that need more than one hard-register to represent them. But only in > some cases. > > The problem is the one mentioned explicitl

Re: Even numbered register pairs restriction on some instructions

2018-08-31 Thread Matthew Malcomson
On 31/08/18 18:06, Jeff Law wrote: On 08/31/2018 09:41 AM, Matthew Malcomson wrote: Hi there, I'm looking into whether it's possible to require even numbered registers on modes that need more than one hard-register to represent them. But only in some cases. The problem is the one mentioned exp

Re: Even numbered register pairs restriction on some instructions

2018-08-31 Thread Jeff Law
On 08/31/2018 09:41 AM, Matthew Malcomson wrote: > Hi there, > > I'm looking into whether it's possible to require even numbered > registers on > modes that need more than one hard-register to represent them. But only in > some cases. > > The problem is the one mentioned explicitly here > https:/

Even numbered register pairs restriction on some instructions

2018-08-31 Thread Matthew Malcomson
Hi there, I'm looking into whether it's possible to require even numbered registers on modes that need more than one hard-register to represent them. But only in some cases. The problem is the one mentioned explicitly here https://gcc.gnu.org/onlinedocs/gccint/Register-Classes.html about enforc