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] Optimize andl $0xffffffff, %eax


On Thu, May 21, 2009 at 05:44:09PM +0200, Richard Guenther wrote:
> > Bootstrapped/regtested on x86_64-linux, ok for trunk?
> 
> Hm, isn't that something simplify-rtx should do?  Transform
> (and:SI reg 0xfffff) to (zero-extend:SI (subreg ...))?

I fear that's too risky, on most targets zero_extend?i?i2 is implemented
using and, so if simplify-rtx canonicalizes that to zero-extend, we
risk oscillating forever between the two.

	Jakub


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