public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/16520] New: Missing underflow exception from tanhf
@ 2014-02-01 9:27 zimmerma+gcc at loria dot fr
2014-02-04 9:38 ` [Bug math/16520] " zimmerma+gcc at loria dot fr
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2014-02-01 9:27 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16520
Bug ID: 16520
Summary: Missing underflow exception from tanhf
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: zimmerma+gcc at loria dot fr
Created attachment 7384
--> https://sourceware.org/bugzilla/attachment.cgi?id=7384&action=edit
test program
on x86_64 with the attached program I get:
GNU libc version: 2.18.90
GNU libc release: development
x=0x1p-149 (1.401298464e-45)
libc: tanhf(x)=0x1p-149 (1.401298464e-45) underflow=0
mpfr: tanhf(x)=0x1p-149 (1.401298464e-45)
ulp difference: 0.000000
The result is the smallest subnormal number, well in the subnormal range, thus
an underflow exception should be raised.
See http://webloria.loria.fr/~zimmerma/glibc/
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/16520] Missing underflow exception from tanhf
2014-02-01 9:27 [Bug math/16520] New: Missing underflow exception from tanhf zimmerma+gcc at loria dot fr
@ 2014-02-04 9:38 ` zimmerma+gcc at loria dot fr
2014-02-07 7:46 ` zimmerma+gcc at loria dot fr
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2014-02-04 9:38 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16520
--- Comment #1 from Paul Zimmermann <zimmerma+gcc at loria dot fr> ---
idem in double precision:
Testing function tanh for exponent 0 [seed=7626].
rounding mode MPFR_RNDN:
wrong underflow flag for x=4.0000000000000@-269
library gives 4.0000000000000@-269
mpfr gives 4.0000000000000@-269
underflow: mpfr 1, library 0
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/16520] Missing underflow exception from tanhf
2014-02-01 9:27 [Bug math/16520] New: Missing underflow exception from tanhf zimmerma+gcc at loria dot fr
2014-02-04 9:38 ` [Bug math/16520] " zimmerma+gcc at loria dot fr
@ 2014-02-07 7:46 ` zimmerma+gcc at loria dot fr
2014-06-13 8:48 ` fweimer at redhat dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2014-02-07 7:46 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16520
--- Comment #2 from Paul Zimmermann <zimmerma+gcc at loria dot fr> ---
idem in extended precision:
Testing function tanh for exponent 0 [seed=8344].
rounding mode MPFR_RNDN:
wrong underflow flag for x=-1.0000000000000000@-4111
library gives -1.0000000000000000@-4111
mpfr gives -1.0000000000000000@-4111
underflow: mpfr 1, library 0
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/16520] Missing underflow exception from tanhf
2014-02-01 9:27 [Bug math/16520] New: Missing underflow exception from tanhf zimmerma+gcc at loria dot fr
2014-02-04 9:38 ` [Bug math/16520] " zimmerma+gcc at loria dot fr
2014-02-07 7:46 ` zimmerma+gcc at loria dot fr
@ 2014-06-13 8:48 ` fweimer at redhat dot com
2015-08-13 16:41 ` cvs-commit at gcc dot gnu.org
2015-08-13 16:42 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 8:48 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16520
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/16520] Missing underflow exception from tanhf
2014-02-01 9:27 [Bug math/16520] New: Missing underflow exception from tanhf zimmerma+gcc at loria dot fr
` (2 preceding siblings ...)
2014-06-13 8:48 ` fweimer at redhat dot com
@ 2015-08-13 16:41 ` cvs-commit at gcc dot gnu.org
2015-08-13 16:42 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-08-13 16:41 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16520
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 37d83a089ddf7649ea0a97d4121883381e23f999 (commit)
from a5cf909b8f25f8240eabc5f1ff96b4be0472d8e1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=37d83a089ddf7649ea0a97d4121883381e23f999
commit 37d83a089ddf7649ea0a97d4121883381e23f999
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu Aug 13 16:40:39 2015 +0000
Fix tanh missing underflows (bug 16520).
Similar to various other bugs in this area, some tanh implementations
do not raise the underflow exception for subnormal arguments, when the
result is tiny and inexact. This patch forces the exception in a
similar way to previous fixes.
Tested for x86_64, x86, mips64 and powerpc.
[BZ #16520]
* sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
(__tanh): Force underflow exception for arguments with small
absolute value.
* sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
(__tanhf): Force underflow exception for arguments with small
absolute value.
* sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
(__tanhl): Force underflow exception for arguments with small
absolute value.
* sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
(__tanhl): Force underflow exception for arguments with small
absolute value.
* sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
(__tanhl): Force underflow exception for arguments with small
absolute value.
* math/auto-libm-test-in: Add more tests of tanh.
* math/auto-libm-test-out: Regenerated.
* sysdeps/i386/fpu/libm-test-ulps: Update.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 22 +++
NEWS | 4 +-
math/auto-libm-test-in | 4 +
math/auto-libm-test-out | 316 +++++++++++++++++++++++++++++++++
sysdeps/i386/fpu/libm-test-ulps | 4 +
sysdeps/ieee754/dbl-64/s_tanh.c | 10 +-
sysdeps/ieee754/flt-32/s_tanhf.c | 8 +
sysdeps/ieee754/ldbl-128/s_tanhl.c | 10 +-
sysdeps/ieee754/ldbl-128ibm/s_tanhl.c | 8 +
sysdeps/ieee754/ldbl-96/s_tanhl.c | 8 +
10 files changed, 390 insertions(+), 4 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/16520] Missing underflow exception from tanhf
2014-02-01 9:27 [Bug math/16520] New: Missing underflow exception from tanhf zimmerma+gcc at loria dot fr
` (3 preceding siblings ...)
2015-08-13 16:41 ` cvs-commit at gcc dot gnu.org
@ 2015-08-13 16:42 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-13 16:42 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16520
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |2.23
--- Comment #4 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Fixed for 2.23.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-08-13 16:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-01 9:27 [Bug math/16520] New: Missing underflow exception from tanhf zimmerma+gcc at loria dot fr
2014-02-04 9:38 ` [Bug math/16520] " zimmerma+gcc at loria dot fr
2014-02-07 7:46 ` zimmerma+gcc at loria dot fr
2014-06-13 8:48 ` fweimer at redhat dot com
2015-08-13 16:41 ` cvs-commit at gcc dot gnu.org
2015-08-13 16:42 ` jsm28 at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).