define_insn : order of matching patterns

jeroen dobbelaere jeroen.dobbelaere@acunia.com
Tue Dec 4 07:52:00 GMT 2001


Alexandre Oliva wrote:

> On Dec  4, 2001, jeroen dobbelaere <jeroen.dobbelaere@acunia.com> wrote:
> 
> 
>>1. Why doesn't the original pattern ('*mulhisi3addsi_left') get a match ?
>>
> 
> Read about pattern canonicalization in the GCC manual.
> 
> 

Ok. Found it there :

<http://gcc.gnu.org/onlinedocs/gcc_21.html#SEC246>

     * For commutative and comparison operators, [..]
       if only one operand is a neg, not, mult, plus, or minus expression, it will be the first operand.

Thanks !

--
Jeroen Dobbelaere
Embedded Software Engineer

ACUNIA Embedded Solutions
http://www.acunia.com




More information about the Gcc mailing list