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


>>     Does the "never" pertain to:
>>     (1) the whole compiler,
>>
>> This one.

> Thanks. Do you know where this restriction is documented in the docs
> because there are at least two persons, the guy who wrote the SPARC port
> and I, who didn't know of it? Otherwise, could you give a brief
> explanation?

http://gcc.gnu.org/onlinedocs/gccint/Insn-Canonicalizations.html#Insn%20Canonicalizations

Explanation:
  (minus (reg) (const_int))
Should be represented as:
  (plus (reg) (-const_int))

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/


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