testsuite: Remove restrictions on VSX tests.

Some of the testcases in gcc.target/powerpc have unnecessarily strict
requirements and run correctly on more powerpc targets.  This patch
removes the restrictions and adds appropriate HW requirements.

gcc/testsuite/ChangeLog

2020-06-30  David Edelsohn  <dje.gcc@gmail.com>

	* gcc.target/powerpc/pr90763.c: Adjust requirements.
	* gcc.target/powerpc/vsx-vector-1.c: Same.
	* gcc.target/powerpc/vsx-vector-2.c: Same.
	* gcc.target/powerpc/vsx-vector-3.c: Same.
	* gcc.target/powerpc/vsx-vector-4.c: Same.
	* gcc.target/powerpc/vsx-vector-5.c: Same.
	* gcc.target/powerpc/vsx-vector-6.p7.c: Same.
	* gcc.target/powerpc/vsx-vector-6.p8.c: Same.
	* gcc.target/powerpc/vsx-vector-6.p9.c: Same.
	* gcc.target/powerpc/vsx-vector-abss.c: Same.
	* gcc.target/powerpc/vsx-vectorize-1.c: Same.
	* gcc.target/powerpc/vsx-vectorize-2.c: Same.
	* gcc.target/powerpc/vsx-vectorize-3.c: Same.
	* gcc.target/powerpc/vsx-vectorize-4.c: Same.
	* gcc.target/powerpc/vsx-vectorize-5.c: Same.
	* gcc.target/powerpc/vsx-vectorize-6.c: Same.
	* gcc.target/powerpc/vsx-vectorize-7.c: Same.
	* gcc.target/powerpc/vsx-vectorize-8.c: Same.
This commit is contained in:
David Edelsohn 2020-06-30 19:57:53 -04:00
parent 1aa696678e
commit f58cc0132d
18 changed files with 27 additions and 26 deletions

View File

@ -1,5 +1,6 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-require-effective-target int128 } */
/* { dg-options "-mdejagnu-cpu=power9 -O2" } */
/* PR90763: PowerPC vec_xl_len should take const.

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -ftree-vectorize -mdejagnu-cpu=power7 -ffast-math" } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -ftree-vectorize -mdejagnu-cpu=power7 -ffast-math" } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -ftree-vectorize -mdejagnu-cpu=power7" } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -ftree-vectorize -mdejagnu-cpu=power7" } */

View File

@ -1,4 +1,4 @@
/* { dg-do run { target { powerpc*-*-* && lp64 } } } */
/* { dg-do run } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mvsx -O2" } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target lp64 } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -mdejagnu-cpu=power7" } */

View File

@ -1,6 +1,6 @@
/* { dg-do compile { target lp64 } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-require-effective-target powerpc_p8vector_ok } */
/* { dg-options "-O2 -mdejagnu-cpu=power8" } */
/* Source code for the test in vsx-vector-6.h */

View File

@ -1,6 +1,6 @@
/* { dg-do compile { target lp64 } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-options "-O2 -mdejagnu-cpu=power9" } */
/* Source code for the test in vsx-vector-6.h */

View File

@ -1,4 +1,4 @@
/* { dg-do run { target { powerpc*-*-* && lp64 } } } */
/* { dg-do run } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target vsx_hw } */
/* { dg-options "-mvsx -O2" } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mdejagnu-cpu=power7 -O2 -ftree-vectorize -fno-tree-loop-distribute-patterns -fno-vect-cost-model -fdump-tree-vect-details" } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mdejagnu-cpu=power7 -O2 -ftree-vectorize -fno-vect-cost-model -fdump-tree-vect-details" } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mdejagnu-cpu=power7 -O2 -ftree-vectorize -fno-vect-cost-model -fdump-tree-vect-details" } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mdejagnu-cpu=power7 -O2 -ftree-vectorize -fno-vect-cost-model -fdump-tree-vect-details" } */
@ -54,6 +54,6 @@ int main (void)
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
/* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 0 "vect" {xfail { {! vect_hw_misalign } || powerpc*-*-* } } } } */
/* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 0 "vect" } } */
/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 3 "vect" {xfail { {! vect_hw_misalign } || powerpc*-*-* } } } } */
/* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 0 "vect" { xfail { {! vect_hw_misalign } || powerpc*-*-* } } } } */
/* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 0 "vect" { xfail { powerpc*-*-aix* } } } } */
/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 3 "vect" { xfail { {! vect_hw_misalign } || powerpc*-*-* } } } } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mdejagnu-cpu=power7 -O2 -ftree-vectorize -fno-vect-cost-model -fdump-tree-vect-details" } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mdejagnu-cpu=power7 -O2 -ftree-vectorize -fno-vect-cost-model -fdump-tree-vect-details" } */
@ -58,6 +58,6 @@ int main (void)
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
/* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 0 "vect" {xfail { {! vect_hw_misalign } || powerpc*-*-* } } } } */
/* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 0 "vect" } } */
/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 4 "vect" {xfail { {! vect_hw_misalign } || powerpc*-*-* } } } } */
/* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 0 "vect" { xfail { {! vect_hw_misalign } || powerpc*-*-* } } } } */
/* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 0 "vect" { xfail { powerpc*-*-aix* } } } } */
/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 4 "vect" { xfail { {! vect_hw_misalign } || powerpc*-*-* } } } } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mdejagnu-cpu=power7 -O2 -ftree-vectorize -fno-vect-cost-model -fdump-tree-vect-details" } */

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mdejagnu-cpu=power7 -O2 -ftree-vectorize -fno-vect-cost-model -fdump-tree-vect-details" } */