diff mbox

, Make Power9 tests check if compiler supports power9

Message ID 20160301212849.GA19975@ibm-tiger.the-meissners.org
State New
Headers show

Commit Message

Michael Meissner March 1, 2016, 9:28 p.m. UTC
I noticed that several of the power9 tests do not check if the power9 support
was built into the compiler.  This patch fixes this.  I'm going to apply these
patches as being obvious.

2016-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/70033
	* gcc.target/powerpc/p9-lxvx-stxvx-1.c: Make sure compiler
	supports power9 before doing tests.
	* gcc.target/powerpc/p9-lxvx-stxvx-2.c: Likewise.
	* gcc.target/powerpc/p9-lxvx-stxvx-3.c: Likewise.
	* gcc.target/powerpc/p9-permute.c: Likewise.
diff mbox

Patch

Index: gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-1.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-1.c	(revision 233835)
+++ gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-1.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do compile { target { powerpc64le-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
 /* { dg-options "-mcpu=power9 -O3" } */
 /* { dg-final { scan-assembler "lxvx" } } */
 /* { dg-final { scan-assembler "stxvx" } } */
Index: gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-2.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-2.c	(revision 233835)
+++ gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-2.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do compile { target { powerpc64le-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
 /* { dg-options "-mcpu=power9 -O1" } */
 /* { dg-final { scan-assembler "lxvx" } } */
 /* { dg-final { scan-assembler "stvewx" } } */
Index: gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-3.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-3.c	(revision 233835)
+++ gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-3.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* { dg-do compile { target { powerpc64le-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
 /* { dg-options "-mcpu=power9 -O3" } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
 /* { dg-final { scan-assembler "lxvx" } } */
 /* { dg-final { scan-assembler "stxvx" } } */
 /* { dg-final { scan-assembler-not "lxvd2x" } } */
Index: gcc/testsuite/gcc.target/powerpc/p9-permute.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/p9-permute.c	(revision 233835)
+++ gcc/testsuite/gcc.target/powerpc/p9-permute.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* { dg-do compile { target { powerpc64le-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
 /* { dg-options "-mcpu=power9 -O2" } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
 
 #include <altivec.h>