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 Sun, Apr 25, 2010 at 10:52 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> 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.
>

Then we should scan leaq and leal explicitly.

-- 
H.J.


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