From: Siddhesh Poyarekar <siddhesh@gotplt.org>
To: Siddhesh Poyarekar <siddhesh@sourceware.org>,
Adhemerval Zanella <adhemerval.zanella@linaro.org>,
libc-alpha@sourceware.org
Cc: fweimer@redhat.com, joseph@codesourcery.com
Subject: Re: [PATCH 5/5] x86 long double: Add tests for pseudo normal numbers
Date: Wed, 23 Dec 2020 15:50:36 +0530 [thread overview]
Message-ID: <7bc285d3-c8ec-66ce-75a5-5acb84e78ab0@gotplt.org> (raw)
In-Reply-To: <d88819ae-6734-b26b-f115-0f387f63a7e5@sourceware.org>
On 12/23/20 7:28 AM, Siddhesh Poyarekar via Libc-alpha wrote:
> On 12/23/20 3:18 AM, Adhemerval Zanella via Libc-alpha wrote:
>>
>>
>> On 15/12/2020 11:13, Siddhesh Poyarekar via Libc-alpha wrote:
>>> Add some tests for fpclassify, isnanl, isinfl and issignaling.
>>> ---
>>> sysdeps/x86/fpu/Makefile | 3 +-
>>> sysdeps/x86/fpu/test-unnormal.c | 196 ++++++++++++++++++++++++++++++++
>>> 2 files changed, 198 insertions(+), 1 deletion(-)
>>> create mode 100644 sysdeps/x86/fpu/test-unnormal.c
>>>
>>> diff --git a/sysdeps/x86/fpu/Makefile b/sysdeps/x86/fpu/Makefile
>>> index 600e42c3db..e77de56d14 100644
>>> --- a/sysdeps/x86/fpu/Makefile
>>> +++ b/sysdeps/x86/fpu/Makefile
>>> @@ -4,11 +4,12 @@ CPPFLAGS += -I../soft-fp
>>> libm-support += powl_helper
>>> tests += test-fenv-sse test-fenv-clear-sse test-fenv-x87
>>> test-fenv-sse-2 \
>>> - test-flt-eval-method-387 test-flt-eval-method-sse
>>> + test-flt-eval-method-387 test-flt-eval-method-sse test-unnormal
>>> CFLAGS-test-fenv-sse.c += -msse2 -mfpmath=sse
>>> CFLAGS-test-fenv-clear-sse.c += -msse2 -mfpmath=sse
>>> CFLAGS-test-fenv-sse-2.c += -msse2 -mfpmath=sse
>>> CFLAGS-test-flt-eval-method-387.c += -fexcess-precision=standard
>>> -mfpmath=387
>>> CFLAGS-test-flt-eval-method-sse.c += -fexcess-precision=standard
>>> -msse2 \
>>> -mfpmath=sse
>>> +CFLAGS-test-unnormal.c += -fsignaling-nans -std=c2x
>>> endif
>>
>> A possibility is to hookup this tests on
>> math/libm-test-{fpclassify,isnan,isinf,issignaling}.inc using the new
>> define
>> I suggested on the 4/5 part [1] so you can also check if no exceptions
>> are being
>> generated and errno is not set.
>>
>> It increases the tests coverage and avoid a arch-specific tests.
>>
>> [1] https://sourceware.org/pipermail/libc-alpha/2020-December/121004.html
>
> OK, it will need changes to the driver.
>
I took a look at this and it looks like it will need a significant
amount of changes to the driver and test generation scripts, since these
numbers are not generated by the CPU. Would it be OK if I defer this to
later if we ever feel the need to add tests beyond test-unnormal?
Siddhesh
next prev parent reply other threads:[~2020-12-23 10:20 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-15 14:13 [PATCH 0/5] x86 pseudo-normal numbers Siddhesh Poyarekar
2020-12-15 14:13 ` [PATCH 1/5] x86 long double: Support pseudo numbers in fpclassifyl Siddhesh Poyarekar
2020-12-22 18:43 ` Adhemerval Zanella
2020-12-23 1:43 ` Siddhesh Poyarekar
2020-12-15 14:13 ` [PATCH 2/5] x86 long double: Support pseudo numbers in isnanl Siddhesh Poyarekar
2020-12-22 19:04 ` Adhemerval Zanella
2020-12-23 1:49 ` Siddhesh Poyarekar
2020-12-23 8:34 ` Siddhesh Poyarekar
2020-12-15 14:13 ` [PATCH 3/5] Partially revert 681900d29683722b1cb0a8e565a0585846ec5a61 Siddhesh Poyarekar
2020-12-15 14:36 ` Florian Weimer
2020-12-15 15:01 ` Siddhesh Poyarekar
2020-12-15 14:13 ` [PATCH 4/5] x86 long double: Consider pseudo numbers as signaling Siddhesh Poyarekar
2020-12-22 20:13 ` Adhemerval Zanella
2020-12-23 1:50 ` Siddhesh Poyarekar
2020-12-15 14:13 ` [PATCH 5/5] x86 long double: Add tests for pseudo normal numbers Siddhesh Poyarekar
2020-12-22 21:48 ` Adhemerval Zanella
2020-12-23 1:58 ` Siddhesh Poyarekar
2020-12-23 10:20 ` Siddhesh Poyarekar [this message]
2020-12-23 17:44 ` Adhemerval Zanella
2020-12-24 0:48 ` Siddhesh Poyarekar
2020-12-15 18:26 ` [PATCH 0/5] x86 pseudo-normal numbers Joseph Myers
2020-12-15 18:29 ` Siddhesh Poyarekar
2020-12-18 4:03 ` [PING][PATCH " Siddhesh Poyarekar
2020-12-22 7:46 ` [PING*2][PATCH " Siddhesh Poyarekar
2020-12-22 11:11 ` Adhemerval Zanella
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=7bc285d3-c8ec-66ce-75a5-5acb84e78ab0@gotplt.org \
--to=siddhesh@gotplt.org \
--cc=adhemerval.zanella@linaro.org \
--cc=fweimer@redhat.com \
--cc=joseph@codesourcery.com \
--cc=libc-alpha@sourceware.org \
--cc=siddhesh@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).