From: Mark Wielaard <mark@klomp.org>
To: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>,
libc-alpha@sourceware.org
Subject: Re: cacosh/csin failures on s390x since CORE-MATH integration
Date: Thu, 07 Nov 2024 18:13:26 +0100 [thread overview]
Message-ID: <e3d1aa595b025d3511a025364acb3b4423482975.camel@klomp.org> (raw)
In-Reply-To: <2d500943-2c3d-4fb8-b672-b1b3fb2981fe@linaro.org>
Hi Adhemerval,
On Thu, 2024-11-07 at 13:40 +0000, Adhemerval Zanella Netto wrote:
> It is expected [1], I had to adjust it on x86, arm, and powerpc as well.
> The __expm1 is exact for the input range, but due how csin/cacoshf
> handles the expm1 result there is addition cancellation errors.
>
> In this case someone will need to run 'make update-ulps' on a real
> hardware and update the libm-test-ulps.
Aha, found https://sourceware.org/glibc/wiki/Regeneration#Math_files
Running make regen-ulps on an s390x machine produced:
Automatic regeneration of ULPs complete.
Difference between the current baseline and the new baseline is:
--- ../sysdeps/s390/fpu/libm-test-ulps 2024-11-07 16:53:35.036318696 +0000
+++ /home/mjw/glibc-obj/math/NewUlps 2024-11-07 17:09:45.376836323 +0000
@@ -228,7 +228,7 @@
Function: Real part of "cacosh_upward":
double: 4
-float: 3
+float: 4
ldouble: 6
Function: Imaginary part of "cacosh_upward":
@@ -720,6 +720,7 @@
ldouble: 1
Function: Imaginary part of "csin":
+float: 1
ldouble: 1
Function: Real part of "csin_downward":
Copy /home/mjw/glibc-obj/math/NewUlps to ../sysdeps/s390/fpu/libm-test-ulps (relative to source).
Will sent a patch after another make check run to verify the results.
Thanks,
Mark
> [1] https://sourceware.org/pipermail/libc-alpha/2024-October/161131.html
prev parent reply other threads:[~2024-11-07 17:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-07 13:06 Mark Wielaard
2024-11-07 13:40 ` Adhemerval Zanella Netto
2024-11-07 17:13 ` Mark Wielaard [this message]
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=e3d1aa595b025d3511a025364acb3b4423482975.camel@klomp.org \
--to=mark@klomp.org \
--cc=adhemerval.zanella@linaro.org \
--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).