Supporting 'MAC' instruction on gcc v4.1.1

Paul Brook paul@codesourcery.com
Sat May 12 00:14:00 GMT 2007


> But for the following example
>   int a = 1;
>   int b = 2;
>   int c = 3;
>   c = c + a * b;
> the MAC pattern is not getting recognized, instead it is still using
> PLUS and MULT patterns.

Your example is bogus. This is optimized to "c = 5" well before we get to RTL.

Paul



More information about the Gcc mailing list