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, i386]: Fix PR target/43766, x86 prefetch doesn't use complex memory addressing


On 04/25/2010 06:07 PM, H.J. Lu wrote:

>> 2010-04-19 ïUros Bizjak ï<ubizjak@gmail.com>
>>
>> ï ï ï ïPR target/43766
>> ï ï ï ï* gcc.target/i386/pr43766.c: New test.
>>
>> Patch was tested on x86_64-pc-linux-gnu {,-m32}. Patch was committed
>> to mainline.
>>
>> Uros.
>>
> 
> The new test failed with
> 
> 	pushl	%ebp
> 	prefetcht0	(%eax,%edx,4)
> 	movl	%esp, %ebp
> 	leave
> 	ret
> 
> since it scans "lea".  I checked this patch as an obvious fix,

Actually, it was done on purpose, we want to avoid leaq and leal.

Uros.


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