rs6000: Fix the vec-adde* testcases once more

David found the vec-adde{,c}-int128.c testcases fail on AIX.  Those
tests should only run on targets that have int128.

This also changes the non-int128 testcases to check for the hardware
they require.


gcc/testsuite/
	* gcc.target/powerpc/vec-adde-int128.c: Only run if int128 exists.
	* gcc.target/powerpc/vec-addec-int128.c: Ditto.
	* gcc.target/powerpc/vec-adde.c: Require vsx_hw, don't require a
	64-bit default target.
	* gcc.target/powerpc/vec-addec.c: Require p8vector_hw, don't require
	a 64-bit default target.

From-SVN: r245453
This commit is contained in:
Segher Boessenkool 2017-02-14 21:27:54 +01:00 committed by Segher Boessenkool
parent 622f6b642a
commit 2932fe90d5
5 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,12 @@
2017-02-14 Segher Boessenkool <segher@kernel.crashing.org>
* gcc.target/powerpc/vec-adde-int128.c: Only run if int128 exists.
* gcc.target/powerpc/vec-addec-int128.c: Ditto.
* gcc.target/powerpc/vec-adde.c: Require vsx_hw, don't require a
64-bit default target.
* gcc.target/powerpc/vec-addec.c: Require p8vector_hw, don't require
a 64-bit default target.
2017-02-14 Jakub Jelinek <jakub@redhat.com>
PR target/79481

View File

@ -1,4 +1,4 @@
/* { dg-do run { target { powerpc*-*-* && p8vector_hw } } } */
/* { dg-do run { target { powerpc*-*-* && { p8vector_hw && int128 } } } } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
/* { dg-options "-mcpu=power8 -O3" } */

View File

@ -1,5 +1,4 @@
/* { dg-do run { target { powerpc64*-*-* } } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-do run { target { powerpc*-*-* && vsx_hw } } } */
/* { dg-options "-mvsx -O3" } */
/* Test that the vec_adde builtin works as expected. */

View File

@ -1,4 +1,4 @@
/* { dg-do run { target { powerpc*-*-* && p8vector_hw } } } */
/* { dg-do run { target { powerpc*-*-* && { p8vector_hw && int128 } } } } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
/* { dg-options "-mcpu=power8 -O3" } */

View File

@ -1,5 +1,4 @@
/* { dg-do run { target { powerpc64*-*-* } } } */
/* { dg-require-effective-target powerpc_p8vector_ok } */
/* { dg-do run { target { powerpc*-*-* && p8vector_hw } } } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
/* { dg-options "-mcpu=power8 -O3" } */