Re: [PATCH, i386]: Generate addr32 prefixed addresses

2011-08-08 Thread H.J. Lu
On Mon, Aug 8, 2011 at 8:16 AM, Uros Bizjak wrote: > Hello! > > Attached patch implements addr32 prefixed addresses for x86_64 > targets, where memory locations are accessed with 32bit base and index > registers in the form (zero_extend:DI (... SImode registers ...)). > The optimization rarely (if

Re: [PATCH, i386]: Generate addr32 prefixed addresses

2011-08-08 Thread Paolo Bonzini
On 08/08/2011 05:16 PM, Uros Bizjak wrote: BTW: There is a strange optimization in combine pass, where zero-extended address is converted on-the-fly to: Trying 9 -> 10: Failed to match this instruction: (... (and:DI (subreg:DI (plus:SI (ashift:SI (reg/v:SI 63 [ i ]) (const_

[PATCH, i386]: Generate addr32 prefixed addresses

2011-08-08 Thread Uros Bizjak
Hello! Attached patch implements addr32 prefixed addresses for x86_64 targets, where memory locations are accessed with 32bit base and index registers in the form (zero_extend:DI (... SImode registers ...)). The optimization rarely (if at all) triggers on x86_64, but is very important on x32 (see