From: Joseph Myers <joseph@codesourcery.com>
To: <libc-alpha@sourceware.org>
Subject: Add more tests of tgamma [committed]
Date: Fri, 01 May 2015 23:15:00 -0000 [thread overview]
Message-ID: <alpine.DEB.2.10.1505012315240.25940@digraph.polyomino.org.uk> (raw)
This patch adds some randomly-generated tests of tgamma that are
observed to increase ulps on x86_64.
Tested for x86_64 and x86 and ulps updated accordingly. Committed.
(auto-libm-test-out diffs omitted below.)
2015-05-01 Joseph Myers <joseph@codesourcery.com>
* math/auto-libm-test-in: Add more tests of tgamma.
* math/auto-libm-test-out: Regenerated.
* sysdeps/i386/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in
index 64000ff..89fcc17 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -2870,6 +2870,10 @@ tgamma 0x6.db8c603359a971081bc4a2e9dfd4p+8
tgamma 1e3
tgamma -100000.5
+tgamma -0x3.06644cp+0
+tgamma -0x6.fe4636e0c5064p+0
+tgamma -0x7.a13d7a2945cd5718p+0
+
y0 0.125
y0 0.75
y0 1.0
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index 10e0ca6..2eceadf 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -1854,12 +1854,12 @@ ildouble: 5
ldouble: 4
Function: "tgamma":
-double: 4
-float: 2
-idouble: 4
-ifloat: 2
-ildouble: 4
-ldouble: 4
+double: 6
+float: 4
+idouble: 6
+ifloat: 4
+ildouble: 6
+ldouble: 6
Function: "y0":
double: 1
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index 9fd710b..97e279c 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -2014,12 +2014,12 @@ ildouble: 4
ldouble: 4
Function: "tgamma":
-double: 4
-float: 3
-idouble: 4
-ifloat: 3
-ildouble: 4
-ldouble: 4
+double: 9
+float: 4
+idouble: 9
+ifloat: 4
+ildouble: 6
+ldouble: 6
Function: "y0":
double: 2
--
Joseph S. Myers
joseph@codesourcery.com
reply other threads:[~2015-05-01 23:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.10.1505012315240.25940@digraph.polyomino.org.uk \
--to=joseph@codesourcery.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).