public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-7571] add powerpc_vsx_ok requirement to undef-bool tests
@ 2021-03-09  3:00 Alexandre Oliva
  0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2021-03-09  3:00 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7eef9a66018e23677058fec421229e3fa435a1a3

commit r11-7571-g7eef9a66018e23677058fec421229e3fa435a1a3
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Mon Mar 8 23:59:37 2021 -0300

    add powerpc_vsx_ok requirement to undef-bool tests
    
    These tests use -mvsx in their dg-options lists, so they are only
    applicable if the -mvsx option is supported by the compiler.
    
    for  gcc/testsuite/ChangeLog
    
            * gcc.target/powerpc/undef-bool-2.c: Add
            dg-require-effective-target powerpc_vsx_ok directive.
            * g++.dg/ext/undef-bool-1.C: Add dg-require-effective-target
            powerpc_vsx_ok directive.

Diff:
---
 gcc/testsuite/g++.dg/ext/undef-bool-1.C         | 1 +
 gcc/testsuite/gcc.target/powerpc/undef-bool-2.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcc/testsuite/g++.dg/ext/undef-bool-1.C b/gcc/testsuite/g++.dg/ext/undef-bool-1.C
index 716e06c1ce4..9cc1cd87260 100644
--- a/gcc/testsuite/g++.dg/ext/undef-bool-1.C
+++ b/gcc/testsuite/g++.dg/ext/undef-bool-1.C
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-options "-O2 -DNO_WARN_X86_INTRINSICS -mvsx" } */
 /* { dg-require-effective-target lp64 } */
+/* { dg-require-effective-target powerpc_vsx_ok } */
 
 /* Test to ensure that "bool" gets undef'd in xmmintrin.h when
    we require strict ANSI.  */
diff --git a/gcc/testsuite/gcc.target/powerpc/undef-bool-2.c b/gcc/testsuite/gcc.target/powerpc/undef-bool-2.c
index d4944ab1ca6..7bc5d184840 100644
--- a/gcc/testsuite/gcc.target/powerpc/undef-bool-2.c
+++ b/gcc/testsuite/gcc.target/powerpc/undef-bool-2.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -std=c11 -DNO_WARN_X86_INTRINSICS -mvsx" } */
 /* { dg-require-effective-target lp64 } */
+/* { dg-require-effective-target powerpc_vsx_ok } */
 
 /* Test to ensure that "bool" gets undef'd in xmmintrin.h when
    we require strict ANSI.  Subsequent use of bool needs stdbool.h.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-09  3:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09  3:00 [gcc r11-7571] add powerpc_vsx_ok requirement to undef-bool tests 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).