This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR optimization/10876


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]