does the instruction combiner regards (foo & 0xff) as a special case?

James E Wilson wilson@specifix.com
Tue Aug 2 17:45:00 GMT 2005


ibanez@sunplus.com wrote:
> I guess the combiner generates something like
> a trucation pattern when special constant are detected.
> The combiner also takse a similiar action in pattern

See the section of the documentation that talks about instruction 
canonicalization.
     http://gcc.gnu.org/onlinedocs/gccint/Insn-Canonicalizations.html
See in particular the last bullet.

Also, as Joern mentioned, you should try stepping through try_combine to 
see what is really happening.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com



More information about the Gcc mailing list