Re: [PATCH, i386]: Optimize AND with 0xffffffff

2012-01-10 Thread Richard Guenther
On Mon, 9 Jan 2012, Uros Bizjak wrote: > Hello! > > Attached patch fixes oversight with AND pattern and 0x > immediate. While ANDs with 0xff and 0x are converted to equivalent > zero_extend pattern, AND with 0x isn't. This problem leaves > important optimization that would sub

[PATCH, i386]: Optimize AND with 0xffffffff

2012-01-09 Thread Uros Bizjak
Hello! Attached patch fixes oversight with AND pattern and 0x immediate. While ANDs with 0xff and 0x are converted to equivalent zero_extend pattern, AND with 0x isn't. This problem leaves important optimization that would substitute "movq%rdi, %rax; andl $4294967295, %e