public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work048)] Force long double to be IBM 128-bit on PowerPC test, PR target/70117.
@ 2021-04-15 17:17 Michael Meissner
0 siblings, 0 replies; only message in thread
From: Michael Meissner @ 2021-04-15 17:17 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2e3abd8d3d1b834692f7cedf8744974aff8c3f53
commit 2e3abd8d3d1b834692f7cedf8744974aff8c3f53
Author: Michael Meissner <meissner@linux.ibm.com>
Date: Thu Apr 15 13:17:16 2021 -0400
Force long double to be IBM 128-bit on PowerPC test, PR target/70117.
This patch fixes the pr70117 test to use IBM 128-bit long double.
I have run tests on a little endian power9 system with 3 compilers. There
were no regressions with these patches, and the two tests in the following
patches now work if the default long double is not IBM 128-bit:
* 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. There were no regressions.
Can I check this patch into the master branch?
gcc/testsuite/
2021-04-15 Michael Meissner <meissner@linux.ibm.com>
PR target/70117
* gcc.target/powerpc/pr70117.c: Force the long double type to use
the IBM 128-bit format.
Diff:
---
gcc/testsuite/gcc.target/powerpc/pr70117.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.target/powerpc/pr70117.c b/gcc/testsuite/gcc.target/powerpc/pr70117.c
index 3bbd2c595e0..8a5fad1dee0 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr70117.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr70117.c
@@ -1,5 +1,7 @@
-/* { dg-do run { target { powerpc*-*-linux* powerpc*-*-darwin* powerpc*-*-aix* rs6000-*-* } } } */
-/* { dg-options "-std=c99 -mlong-double-128 -O2" } */
+/* { dg-do run } */
+/* { dg-require-effective-target ppc_long_double_override_ibm128 } */
+/* { dg-options "-std=c99 -O2" } */
+/* { dg-add-options ppc_long_double_override_ibm128 } */
#include <float.h>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-15 17:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 17:17 [gcc(refs/users/meissner/heads/work048)] Force long double to be IBM 128-bit on PowerPC test, PR target/70117 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).