Re: Extending constraints using register subclasses

2009-05-16 Thread Jamie Prescott
> From: Andrew Pinski > To: Jamie Prescott > Cc: gcc@gcc.gnu.org > Sent: Saturday, May 16, 2009 8:04:59 AM > Subject: Re: Extending constraints using register subclasses > > On Sat, May 16, 2009 at 7:57 AM, Jamie Prescott wrote: > > Now I managed to have the

Re: Extending constraints using register subclasses

2009-05-16 Thread Andrew Pinski
On Sat, May 16, 2009 at 7:57 AM, Jamie Prescott wrote: > Now I managed to have the approach based on register subclasses working. The > above > works too, but I somehow found it less clear and more "global" than inline > assembly > constraints. It is not global as the register variables don't e

Re: Extending constraints using register subclasses

2009-05-16 Thread Jamie Prescott
> From: Andrew Pinski > To: Jamie Prescott > Cc: gcc@gcc.gnu.org > Sent: Monday, May 11, 2009 4:47:57 PM > Subject: Re: Extending constraints using register subclasses > > On Mon, May 11, 2009 at 4:45 PM, Jamie Prescott wrote: > > > > Hi! > > I

Re: Extending constraints using register subclasses

2009-05-14 Thread Jamie Prescott
- Original Message > From: Jamie Prescott > To: Jamie Prescott ; Michael Meissner > > Cc: gcc@gcc.gnu.org > Sent: Thursday, May 14, 2009 5:36:14 PM > Subject: Re: Extending constraints using register subclasses > > - Original Message > > From: J

Re: Extending constraints using register subclasses

2009-05-14 Thread Jamie Prescott
- Original Message > From: Jamie Prescott > To: Michael Meissner > Cc: gcc@gcc.gnu.org > Sent: Thursday, May 14, 2009 4:22:13 PM > Subject: Re: Extending constraints using register subclasses > OK, I tried reordering the classes by putting smaller ones first. Did not

Re: Extending constraints using register subclasses

2009-05-14 Thread Michael Meissner
On Thu, May 14, 2009 at 04:22:13PM -0700, Jamie Prescott wrote: > OK, I tried reordering the classes by putting smaller ones first. Did not > work. > As far as IRA_COVER_CLASS, this should be a new thing, isn't it? I'm currently > on 4.3.3 and I found no mention of it anywhere. Yes, it was added

Re: Extending constraints using register subclasses

2009-05-14 Thread Jamie Prescott
- Original Message > From: Michael Meissner > To: Jamie Prescott > Cc: gcc@gcc.gnu.org > Sent: Thursday, May 14, 2009 11:38:18 AM > Subject: Re: Extending constraints using register subclasses > > On Mon, May 11, 2009 at 04:45:26PM -0700, Jamie Prescott wrot

Re: Extending constraints using register subclasses

2009-05-14 Thread Jamie Prescott
- Original Message > From: Michael Meissner > To: Jamie Prescott > Cc: gcc@gcc.gnu.org > Sent: Thursday, May 14, 2009 11:38:18 AM > Subject: Re: Extending constraints using register subclasses > > On Mon, May 11, 2009 at 04:45:26PM -0700, Jamie Prescott wrot

Re: Extending constraints using register subclasses

2009-05-14 Thread Michael Meissner
On Mon, May 11, 2009 at 04:45:26PM -0700, Jamie Prescott wrote: > > Hi! > I wanted to add finer (one per) register subclasses, so that I can more > finely control > the register placement inside the inline assembly. > These are the relevant definitions inside my include file: > > enum reg_class

Re: Extending constraints using register subclasses

2009-05-13 Thread Jim Wilson
Jamie Prescott wrote: enum reg_class { NO_REGS = 0, GENERAL_REGS, X_REGS, R0_REG, R1_REG, R2_REG, R3_REG, The only obvious thing I notice is that you have the largest classes first. The docs say to put the smaller classes first. The compiler always assumes th

Re: Extending constraints using register subclasses

2009-05-13 Thread Georg-Johann Lay
Jamie Prescott schrieb: On Mon, May 11, 2009 at 4:45 PM, Jamie Prescott wrote: Hi! I wanted to add finer (one per) register subclasses, so that I can more finely control the register placement inside the inline assembly. You don't need that. You can just use asm("registername") on v

Re: Extending constraints using register subclasses

2009-05-13 Thread Jamie Prescott
> >> On Mon, May 11, 2009 at 4:45 PM, Jamie Prescott wrote: > >> > >>> Hi! > >>> I wanted to add finer (one per) register subclasses, so that I can more > finely > >> control > >>> the register placement inside the inline assembly. > >> > >> You don't need that. > >> You can just use asm("reg

Re: Extending constraints using register subclasses

2009-05-13 Thread Georg-Johann Lay
ndrew Pinski To: Jamie Prescott Cc: gcc@gcc.gnu.org Sent: Monday, May 11, 2009 4:47:57 PM Subject: Re: Extending constraints using register subclasses On Mon, May 11, 2009 at 4:45 PM, Jamie Prescott wrote: Hi! I wanted to add finer (one per) register subclasses, so that I can more finely control

Re: Extending constraints using register subclasses

2009-05-11 Thread Jamie Prescott
; To: Jamie Prescott > Cc: gcc@gcc.gnu.org > Sent: Monday, May 11, 2009 4:47:57 PM > Subject: Re: Extending constraints using register subclasses > > On Mon, May 11, 2009 at 4:45 PM, Jamie Prescott wrote: > > > > Hi! > > I wanted to add finer (one per) register subclasse

Re: Extending constraints using register subclasses

2009-05-11 Thread Andrew Pinski
On Mon, May 11, 2009 at 4:45 PM, Jamie Prescott wrote: > > Hi! > I wanted to add finer (one per) register subclasses, so that I can more > finely control > the register placement inside the inline assembly. You don't need that. You can just use asm("registername") on variables. like so: int f(i

Extending constraints using register subclasses

2009-05-11 Thread Jamie Prescott
Hi! I wanted to add finer (one per) register subclasses, so that I can more finely control the register placement inside the inline assembly. These are the relevant definitions inside my include file: enum reg_class { NO_REGS = 0, GENERAL_REGS, X_REGS, R0_REG, R1_