public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] ppc: testsuite: skip pr60203 on no ldbl128
@ 2022-04-11 23:57 Alexandre Oliva
  2022-04-12 18:57 ` Segher Boessenkool
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Oliva @ 2022-04-11 23:57 UTC (permalink / raw)
  To: gcc-patches; +Cc: David Edelsohn, Segher Boessenkool


If neither 128-bit long double format is available, skip pr60203.c.

Tested with gcc-11 targeting ppc64-vx7r2, with neither long double
format enabled.  Ok to install?


for  gcc/testsuite/ChangeLog

	* gcc.target/powerpc/pr60203.c: Skip on no 128-bit long double.
---
 gcc/testsuite/gcc.target/powerpc/pr60203.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.target/powerpc/pr60203.c b/gcc/testsuite/gcc.target/powerpc/pr60203.c
index 7ada64a32db45..53f58c8e05a41 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr60203.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr60203.c
@@ -1,5 +1,6 @@
 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
+/* { dg-skip-if "no 128-bit long double" { ! { long_double_ibm128 || long_double_ieee128 } } } */
 /* { dg-require-effective-target powerpc_p8vector_ok } */
 /* { dg-options "-mdejagnu-cpu=power8 -O3" } */
 


-- 
Alexandre Oliva, happy hacker                https://FSFLA.org/blogs/lxo/
   Free Software Activist                       GNU Toolchain Engineer
Disinformation flourishes because many people care deeply about injustice
but very few check the facts.  Ask me about <https://stallmansupport.org>

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

* Re: [PATCH] ppc: testsuite: skip pr60203 on no ldbl128
  2022-04-11 23:57 [PATCH] ppc: testsuite: skip pr60203 on no ldbl128 Alexandre Oliva
@ 2022-04-12 18:57 ` Segher Boessenkool
  2022-04-13  1:16   ` Alexandre Oliva
  0 siblings, 1 reply; 3+ messages in thread
From: Segher Boessenkool @ 2022-04-12 18:57 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: gcc-patches, David Edelsohn

Hi!

On Mon, Apr 11, 2022 at 08:57:07PM -0300, Alexandre Oliva wrote:
> If neither 128-bit long double format is available, skip pr60203.c.
> 
> Tested with gcc-11 targeting ppc64-vx7r2, with neither long double
> format enabled.  Ok to install?

Can you use check_effective_target_longdouble128 instead?
/* { dg-require-effective-target longdouble128 } */

Okay for trunk, preferably like that.  Thanks!


Segher

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

* Re: [PATCH] ppc: testsuite: skip pr60203 on no ldbl128
  2022-04-12 18:57 ` Segher Boessenkool
@ 2022-04-13  1:16   ` Alexandre Oliva
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Oliva @ 2022-04-13  1:16 UTC (permalink / raw)
  To: Segher Boessenkool; +Cc: gcc-patches, David Edelsohn

On Apr 12, 2022, Segher Boessenkool <segher@kernel.crashing.org> wrote:

> Hi!
> On Mon, Apr 11, 2022 at 08:57:07PM -0300, Alexandre Oliva wrote:
>> If neither 128-bit long double format is available, skip pr60203.c.
>> 
>> Tested with gcc-11 targeting ppc64-vx7r2, with neither long double
>> format enabled.  Ok to install?

> Can you use check_effective_target_longdouble128 instead?
> /* { dg-require-effective-target longdouble128 } */

> Okay for trunk, preferably like that.  Thanks!

Thanks, here's what I'm installing

ppc: testsuite: skip pr60203 on no ldbl128

If neither 128-bit long double format is available, skip pr60203.c.


for  gcc/testsuite/ChangeLog

	* gcc.target/powerpc/pr60203.c: Skip on no 128-bit long double.
---
 gcc/testsuite/gcc.target/powerpc/pr60203.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.target/powerpc/pr60203.c b/gcc/testsuite/gcc.target/powerpc/pr60203.c
index 7ada64a32db45..a5a574a883729 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr60203.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr60203.c
@@ -1,5 +1,6 @@
 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
+/* { dg-require-effective-target longdouble128 } */
 /* { dg-require-effective-target powerpc_p8vector_ok } */
 /* { dg-options "-mdejagnu-cpu=power8 -O3" } */
 


-- 
Alexandre Oliva, happy hacker                https://FSFLA.org/blogs/lxo/
   Free Software Activist                       GNU Toolchain Engineer
Disinformation flourishes because many people care deeply about injustice
but very few check the facts.  Ask me about <https://stallmansupport.org>

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

end of thread, other threads:[~2022-04-13  1:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11 23:57 [PATCH] ppc: testsuite: skip pr60203 on no ldbl128 Alexandre Oliva
2022-04-12 18:57 ` Segher Boessenkool
2022-04-13  1:16   ` Alexandre Oliva

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