This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PPro and egcs
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: PPro and egcs
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 27 Oct 1997 15:39:23 -0700
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <m0xPxjy-0004edC@ocean.lucon.org>you write:
> >
> >
> > In message <m0xPxLV-0004edC@ocean.lucon.org>you write:
> > > I tried it. But it failed to compile _bb.o in libgcc2.a.
> > > It aborted in find_reloads (). It seems that there weren't
> > > enough registers for reload.
> > Well, I'd be tempted to simplify it such that it only accepts regs
> > and requires an inout operand. That handles the most common cases
> > and should require more registers than your typical add pattern.
> >
>
> >From what I saw, gcc wound up trying to put those operands into
> registers to satisfy the constraints, which caused the register
> shortage.
No, there was a const_int in the original example, which caused gcc to
try and use the last constraint, which didn't work because the clobber
was teh same as one of the input registers.
If you fix the pattern to only use two registers (remember there's a
matching in/out) then it shouldn't be any more register pressure
sensitive than any other two operand instruction.