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 alpha specific fmax, fmin to fix sNaN handling [BZ #20947]


On Tue, 2 Jan 2018, Adhemerval Zanella wrote:

> I haven't tested if it is the case of an emulated instruction (I currently
> I do not have access to rebuild/reinstall new kernel on the machine), but 
> since I am checking on EV68CB I guess it is not.

If the instruction sets inexact in hardware (I was going on 4.7.6.4 
IEEE-Compliant Arithmetic Without Inexact Exception, "this model does not 
signal inexact results either by the inexact status flag or by trapping"), 
then indeed you need to avoid using the instruction or avoid any inexact 
bit from it being set on return from the function (while of course if 
inexact was set on entry to the function, it still needs to be set on 
return from the function, so you can't simply clear inexact after the 
instruction).

-- 
Joseph S. Myers
joseph@codesourcery.com


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