[rs6000] tighten target statements for a p8 and p9 specific tests

Message ID 1519234411.11602.371.camel@brimstone.rchland.ibm.com
State New
Headers show
Series
  • [rs6000] tighten target statements for a p8 and p9 specific tests
Related show

Commit Message

will schmidt Feb. 21, 2018, 5:33 p.m.
Hi, 
  Update the dg-requires statements for these tests to specify the target.
These tests may otherwise fail on a system missing p9 assembler support.
(Seen in a p6 environment).

OK for trunk?
Thanks,
-Will

[testsuite]

2018-02-21  Will Schmidt  <will_schmidt@vnet.ibm.com>

	* gcc.target/powerpc/pr80695-p8.c: Update dg-requires stanza.
	* gcc.target/powerpc/pr80695-p9.c: Update dg-requires stanza.

Comments

Segher Boessenkool Feb. 22, 2018, 6:12 p.m. | #1
On Wed, Feb 21, 2018 at 11:33:31AM -0600, Will Schmidt wrote:
>   Update the dg-requires statements for these tests to specify the target.

> These tests may otherwise fail on a system missing p9 assembler support.

> (Seen in a p6 environment).

> 

> OK for trunk?


Okay, thanks!


Segher


> 2018-02-21  Will Schmidt  <will_schmidt@vnet.ibm.com>

> 

> 	* gcc.target/powerpc/pr80695-p8.c: Update dg-requires stanza.

> 	* gcc.target/powerpc/pr80695-p9.c: Update dg-requires stanza.

Patch

diff --git a/gcc/testsuite/gcc.target/powerpc/pr80695-p8.c b/gcc/testsuite/gcc.target/powerpc/pr80695-p8.c
index 165079a..b5d007e 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr80695-p8.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr80695-p8.c
@@ -1,6 +1,6 @@ 
-/* { dg-do compile { target { powerpc*-*-* } } } */
+/* { dg-do compile { target { powerpc_p8vector_ok } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
 /* { dg-require-effective-target vect_int } */
 /* { dg-options "-mcpu=power8 -O3 -fdump-tree-slp-details" } */
 
 /* PR80695: Verify cost model for vec_construct on POWER8.  */
diff --git a/gcc/testsuite/gcc.target/powerpc/pr80695-p9.c b/gcc/testsuite/gcc.target/powerpc/pr80695-p9.c
index a81f90a..302b1c5 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr80695-p9.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr80695-p9.c
@@ -1,6 +1,6 @@ 
-/* { dg-do compile { target { powerpc*-*-* } } } */
+/* { dg-do compile { target { powerpc_p9vector_ok } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
 /* { dg-require-effective-target vect_int } */
 /* { dg-options "-mcpu=power9 -O3 -fdump-tree-slp-details" } */
 
 /* PR80695: Verify cost model for vec_construct on POWER9.  */