This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] Remove incorrect register mov in floorf on x86_64


On 08/14/2015 04:36 PM, H.J. Lu wrote:
> On Fri, Aug 14, 2015 at 1:05 PM, Carlos O'Donell <carlos@redhat.com> wrote:
>> On 08/14/2015 08:34 AM, H.J. Lu wrote:
>>> On Fri, Aug 14, 2015 at 4:19 AM, Siddhesh Poyarekar <siddhesh@redhat.com> wrote:
>>>> On Fri, Aug 14, 2015 at 01:12:04PM +0200, OndÅej BÃlka wrote:
>>>>> It isn't incorrect, just dead move. Ok for me.
>>>>
>>>> No, it loads an arbitrary value (we don't know what is in %rax at that
>>>> point) into %rdx and overwrites the struct address.
>>>>
>>>
>>> Thanks for catching it. I checked in your patch together with the same
>>> fix for sysdeps/x86_64/fpu/multiarch/s_nearbyint.S
>>
>> Why didn't testing catch this? Is it because this is a multiarch that
>> didn't get tested?
> 
> RAX contains a valid address, but not the correct address.  Since
> my machine has SSE4.1, any version works.  But machines without
> SSE4.1 may fail.
 
OK, that's what I figured. I'll see what we can do to make this better.

Cheers,
Carlos.
 


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