diff mbox series

[rs6000,committed] undef-bool-* tests should exclude -m32

Message ID 8e5d5153-e9d1-cf95-d729-e5d74ee3ee97@linux.ibm.com
State New
Headers show
Series [rs6000,committed] undef-bool-* tests should exclude -m32 | expand

Commit Message

Bill Schmidt April 20, 2018, 9:04 p.m. UTC
Hi,

These two new tests don't work with -m32, because they include headers
that don't support 32-bit.  Require lp64 to stop the noise.  Tested on
powerpc64-linux-gnu (P7, 32/64) and powerpc64le-linux-gnu (P8, 64),
committed as pre-approved.

Thanks!
Bill


[gcc/testsuite]

2018-04-20  Bill Schmidt  <wschmidt@linux.ibm.com>

	* g++.dg/ext/undef-bool-1.C: Require lp64.
	* gcc.target/powerpc/undef-bool-2.c: Likewise.
diff mbox series

Patch

Index: gcc/testsuite/g++.dg/ext/undef-bool-1.C
===================================================================
--- gcc/testsuite/g++.dg/ext/undef-bool-1.C	(revision 259521)
+++ gcc/testsuite/g++.dg/ext/undef-bool-1.C	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-options "-O2 -DNO_WARN_X86_INTRINSICS -mvsx" } */
+/* { dg-require-effective-target lp64 } */
 
 /* Test to ensure that "bool" gets undef'd in xmmintrin.h when
    we require strict ANSI.  */
Index: gcc/testsuite/gcc.target/powerpc/undef-bool-2.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/undef-bool-2.c	(revision 259521)
+++ gcc/testsuite/gcc.target/powerpc/undef-bool-2.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do compile } */
 /* { dg-options "-O2 -std=c11 -DNO_WARN_X86_INTRINSICS -mvsx" } */
+/* { dg-require-effective-target lp64 } */
 
 /* Test to ensure that "bool" gets undef'd in xmmintrin.h when
    we require strict ANSI.  Subsequent use of bool needs stdbool.h.