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] Fold zero extensions into bit-wise ANDs


> you have a zero extension from 8 to 64 bit, which explains the xorl.
> 
> To get GCC to do this, you need a sign-extend of a zero-extend to be
> optimized to the equivalent zero-extend.  It looks like it doesn't
> know how to do that, yet.

This really should trigger in combine, as it contains code to do the
trick.

Honza
> 
> 
> Segher


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