[PATCH] Fix PR optimization/10876

Jakub Jelinek jakub@redhat.com
Sat May 24 06:58:00 GMT 2003


On Sat, May 24, 2003 at 07:39:35AM +0200, Eric Botcazou wrote:
> > http://gcc.gnu.org/onlinedocs/gccint/Insn-Canonicalizations.html#Insn%20Ca
> >nonicalizations
> 
> Yes, thanks for the link.
> 
> > Explanation:
> >   (minus (reg) (const_int))
> > Should be represented as:
> >   (plus (reg) (-const_int))
> 
> There is exactly one case for which this transformation is not possible on 
> SPARC: with CONST_INT == -4096. So we'll resort to putting the constant in a 
> register.

Better add a new constraint for arith_4096_operand and
arith_double_4096_operand and change *adddi3_sp64 and *addsi3 to handle that
alternative.

	Jakub



More information about the Gcc-patches mailing list