> 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
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
> 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
- 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
- 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
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
- 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
- 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
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
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
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
> >> 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
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
; 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
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
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_
16 matches
Mail list logo