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


> 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.

-- 
Eric Botcazou


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