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


Eric Botcazou <ebotcazou@libertysurf.fr> writes:

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

Or you could special-case (plus (reg) (const_int -4096)) in the output
template.

zw


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