public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Updates for float128 tests
@ 2020-12-04  3:41 Michael Meissner
  2020-12-04  3:49 ` Date: Sat, 21 Nov 2020 00:33:52 -0500 Michael Meissner
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Michael Meissner @ 2020-12-04  3:41 UTC (permalink / raw)
  To: gcc-patches, Michael Meissner, Segher Boessenkool,
	David Edelsohn, Bill Schmidt, Peter Bergner

These patches update the test suite patches I posted on November 21.

There are 3 patches in this series.

    1)	The first patch adds new target-support options;
    2)	The second patch updates pr70117.c; (and)
    3)	The third patch updates convert-bfp-11.c.

In the target supports patches, I expanded the target supports to include more
options to select targets with an appropriate long double format.  There are
four options to check whether the current long double is:

    1)	128-bit using the IBM extended double format;
    2)	128-bit using the IEEE format;
    3)	Long double is 128-bits (i.e. either IBM or IEEE); (and)
    4)	Long double is 64-bits.

I also added two new target supports:

    1)	If you can switch the long double to IBM extended double via compiler
	options and the GLIBC supports this change.  If you are using an
	existing GLIBC with IBM long double, this should work since you aren't
	switching the long double format.

    2)	And likewise if you can switch the long double to IEEE 128-bit.

I modified the two tests to use the new target supports where we select IBM
128-bit at compile time.  This will allow these two tests to be tested with the
current compilers, and also continue to running these two tests when the
default long double has been changed.  I have built compilers with each of the
three long double formats being default, and all 3 compilers run these tests
(providing I use GLIBC 2.32 or later).

-- 
Michael Meissner, IBM
IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA
email: meissner@linux.ibm.com, phone: +1 (978) 899-4797

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH 0/3] PowerPC: Fix up tests for IEEE 128-bit long double
@ 2021-01-15  3:37 Michael Meissner
  2021-01-15  3:41 ` [PATCH 3/3] PowerPC: Force IBM long double for conversion test Michael Meissner
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Meissner @ 2021-01-15  3:37 UTC (permalink / raw)
  To: gcc-patches, Michael Meissner, Segher Boessenkool,
	David Edelsohn, Bill Schmidt, Peter Bergner

In November, I submitted a patch to fix up some of the tests for when IEEE
128-bit is used as the long double format.  Segher had some suggestions.  These
patches are based on those suggestions:
https://gcc.gnu.org/pipermail/gcc-patches/2020-November/559836.html

These patches add several more selections to target-supports.exp:

    *	3 selections for the current long double format;
    *	3 selections if we can change the long double format to a particular
	value.
    *	3 functions to return the options needed to switch the long double
	format for use with dg-add-options.

And there are the 2 tests (pr70117, convert-bfp-11.c) that need to be
configured run with IBM 128-bit long double because the test itself was written
knowing about the format of IBM 128-bit floating point.

I have run tests on a little endian power9 system with 3 compilers:
    *	One compiler using the default IBM 128-bit format;
    *	One compiler using the IEEE 128-bit format; (and)
    *	One compiler using 64-bit long doubles.

I have also tested compilers on a big endian power8 system with a compiler
defaulting to power8 code generation and another with the default cpu set.

-- 
Michael Meissner, IBM
IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA
email: meissner@linux.ibm.com, phone: +1 (978) 899-4797

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-01-15  3:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-04  3:41 [PATCH 0/3] Updates for float128 tests Michael Meissner
2020-12-04  3:49 ` Date: Sat, 21 Nov 2020 00:33:52 -0500 Michael Meissner
2020-12-04  3:57 ` [PATCH 2/3] PowerPC: require IBM long double for pr70117 Michael Meissner
2020-12-14 23:26   ` Segher Boessenkool
2020-12-17 18:18     ` Michael Meissner
2020-12-04  4:03 ` [PATCH 3/3] PowerPC: Force IBM long double for conversion test Michael Meissner
2020-12-04  4:06 ` [PATCH 1/3] PowerPC: Add long double target-supports Michael Meissner
2020-12-14 20:50   ` Segher Boessenkool
2021-01-15  3:37 [PATCH 0/3] PowerPC: Fix up tests for IEEE 128-bit long double Michael Meissner
2021-01-15  3:41 ` [PATCH 3/3] PowerPC: Force IBM long double for conversion test Michael Meissner

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).