testsuite: Remove restrictions on VSX tests.
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 30 Jun 2020 23:57:53 +0000 (19:57 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Wed, 1 Jul 2020 00:27:48 +0000 (20:27 -0400)
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.

18 files changed:
gcc/testsuite/gcc.target/powerpc/pr90763.c
gcc/testsuite/gcc.target/powerpc/vsx-vector-1.c
gcc/testsuite/gcc.target/powerpc/vsx-vector-2.c
gcc/testsuite/gcc.target/powerpc/vsx-vector-3.c
gcc/testsuite/gcc.target/powerpc/vsx-vector-4.c
gcc/testsuite/gcc.target/powerpc/vsx-vector-5.c
gcc/testsuite/gcc.target/powerpc/vsx-vector-6.p7.c
gcc/testsuite/gcc.target/powerpc/vsx-vector-6.p8.c
gcc/testsuite/gcc.target/powerpc/vsx-vector-6.p9.c
gcc/testsuite/gcc.target/powerpc/vsx-vector-abss.c
gcc/testsuite/gcc.target/powerpc/vsx-vectorize-1.c
gcc/testsuite/gcc.target/powerpc/vsx-vectorize-2.c
gcc/testsuite/gcc.target/powerpc/vsx-vectorize-3.c
gcc/testsuite/gcc.target/powerpc/vsx-vectorize-4.c
gcc/testsuite/gcc.target/powerpc/vsx-vectorize-5.c
gcc/testsuite/gcc.target/powerpc/vsx-vectorize-6.c
gcc/testsuite/gcc.target/powerpc/vsx-vectorize-7.c
gcc/testsuite/gcc.target/powerpc/vsx-vectorize-8.c

index 33a462177e366ae7b951144413c2cc7c4aed8b3a..2f4c4f4c0f1a070fa1d2a954a101056141819e00 100644 (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.
index 493be61e08ef88e654c2452d7a4a894155061d6b..364406ae7252b6fa2890be013f2de1b680162f3c 100644 (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" } */
index 0338a8f67a4309ee5e2328bef9e740e04fc09b7e..4db63e00c3141de1176865b33bf5f7c181d221e5 100644 (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" } */
index b9f7d101ef2a8107b000b32808917b3d98f4cd0c..9313e77e9970b2fbe6e6ed886543d49e428d7e48 100644 (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" } */
index 8a6fa44e7a03a7418aaced452ecb57ed8032f533..016366d703dec2a6566922c314f5be4af139d0e2 100644 (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" } */
index 4570dc3e09be78f98d20c6b4c73f7aa9fd37a1c4..23f2528bb68a25c39529ca8ecb51f851b086df3c 100644 (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" } */
index ff560dd8d4f4a13293e65698b7c317109b6392af..0c9706499a14a726914b452cf84edc843c34555a 100644 (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" } */
index a99da65049281e06aa5188ae7ec2e5c6421d79a4..761159adcb37125755b3a2f1f6c6fbe7550a0263 100644 (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 */
index 2d81de1bea03ff4ae674d0d46df2bc7b595ba62e..ee0e8736f0e400e7a1ec69c218af6eb4bae36519 100644 (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 */
index d8927b37fbf0bc85f01d14a4c0e20a35910058ef..eacb52dda362e29d9e5d7cbc3b4e6237c614f10d 100644 (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" } */
index 686638f005be955139a2471bb273bcd518d2c58a..31ef5b6c51a54fdf7e6e5fe506669d723fa6f50b 100644 (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" } */
index dfbbb564d2e78ea287c2e291699093219b3732fe..b32484e83bc2d3ffbda3b77470852fe5f1fbdfc1 100644 (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" } */
index 24d7330c0e3ed24c03621561b3b25569ab2af25c..003e5f831d35f25251acbca7fe6c7cef748509e7 100644 (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" } */
index f8944faf4fa3783755e9c5aa9657fc469269cda8..6f078e75a78459eff4d01f421a2dadee4517f2b5 100644 (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*-*-* } } } } */
index 5d390bed1f8e3312780c246ab9dad1eb1a0ce0e5..82a31e158013714de7aeca7912a16391c1e2f530 100644 (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" } */
index 4138d2cac66437828691b9e0f7c738bc74ecb572..0fe1f5806afefd8753503c2485ac4718deea3b18 100644 (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*-*-* } } } } */
index 380d9b0e57d4e744d3ce81278c11b9c0e6452f49..df55222aed6a5e6945040b32d56086a2393f55b2 100644 (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" } */
index cf52b0a963fbdbc2321201d59421b4581b49e392..d2febfbb5e6e167e9e9bad1f0d47bde81e5dc257 100644 (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" } */