This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Remove alpha specific fmax, fmin to fix sNaN handling [BZ #20947]
On Wed, 3 Jan 2018, Adhemerval Zanella wrote:
> Although the manual I am using (Alpha Architecture Handbook version 3),
> notes that CVTfi OUTPUT Exceptions (B.3 Mapping to IEEE Standard)
> should not generate Inexact, the manual of the chip I am testing it
> (Alpha 21264 [1]) states at A.8 IEEE Floating-Point Conformance that
> CVTfi and CVTif OUTPUT does generate inexact exception for inexact
> result. I think easier solution is just use generic implementation
> for alpha.
Sure. Presumably this applies to all of ceil, floor and trunc. And a GCC
bug should be filed for inlining those functions on alpha in the default
-ffp-int-builtin-inexact case which allows the exception to be raised.
--
Joseph S. Myers
joseph@codesourcery.com