From: David Edelsohn Date: Wed, 21 Oct 2020 00:52:06 +0000 (-0400) Subject: testsuite: enable and fix swaps-p8 testcases X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8f795cac6a1325bc6bcba3f47b7d04cb790400c;p=gcc.git testsuite: enable and fix swaps-p8 testcases This patch enables swaps-p8 and a few other testcases on non-powerpc64le systems. It also cleans up the target requirements for various testcases. gcc/testsuite/ChangeLog: * gcc.target/powerpc/p9-extract-1.c: Require lp64. * gcc.target/powerpc/p9-extract-2.c: Require lp64. * gcc.target/powerpc/p9-extract-3.c: Require lp64. * gcc.target/powerpc/p9-permute.c: Remove target. * gcc.target/powerpc/pr63335.c: Remove target. * gcc.target/powerpc/pr87507.c: Remove target. * gcc.target/powerpc/swaps-p8-1.c: Require LE and P8. * gcc.target/powerpc/swaps-p8-10.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-11.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-12.c: Require LE and P8. * gcc.target/powerpc/swaps-p8-13.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-14.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-15.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-16.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-17.c: Require P8. * gcc.target/powerpc/swaps-p8-18.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-19.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-2.c: Require LE and P8. * gcc.target/powerpc/swaps-p8-20.c: Remove target. * gcc.target/powerpc/swaps-p8-21.c: Remove target. Require Altivec. * gcc.target/powerpc/swaps-p8-22.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-23.c: Require LE and P8. * gcc.target/powerpc/swaps-p8-24.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-25.c: Require LE and P8. * gcc.target/powerpc/swaps-p8-26.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-27.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-28.c: Remove target. * gcc.target/powerpc/swaps-p8-29.c: Remove target. * gcc.target/powerpc/swaps-p8-3.c: Require LE and P8. * gcc.target/powerpc/swaps-p8-30.c: Remove target. * gcc.target/powerpc/swaps-p8-31.c: Remove target. * gcc.target/powerpc/swaps-p8-32.c: Remove target. * gcc.target/powerpc/swaps-p8-33.c: Remove target. * gcc.target/powerpc/swaps-p8-34.c: Remove target. * gcc.target/powerpc/swaps-p8-35.c: Remove target. * gcc.target/powerpc/swaps-p8-36.c: Remove target. * gcc.target/powerpc/swaps-p8-37.c: Remove target. * gcc.target/powerpc/swaps-p8-38.c: Remove target. * gcc.target/powerpc/swaps-p8-39.c: Remove target. * gcc.target/powerpc/swaps-p8-4.c: Require LE and P8. * gcc.target/powerpc/swaps-p8-40.c: Remove target. * gcc.target/powerpc/swaps-p8-41.c: Remove target. * gcc.target/powerpc/swaps-p8-42.c: Remove target. * gcc.target/powerpc/swaps-p8-43.c: Remove target. * gcc.target/powerpc/swaps-p8-44.c: Remove target. * gcc.target/powerpc/swaps-p8-45.c: Remove target. * gcc.target/powerpc/swaps-p8-46.c: Require LE. * gcc.target/powerpc/swaps-p8-5.c: Require LE and P8. * gcc.target/powerpc/swaps-p8-6.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-7.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-8.c: Remove target. Require P8. * gcc.target/powerpc/swaps-p8-9.c: Remove target. Require P8. * gcc.target/powerpc/vec-cmp.c: Require LP64. * gcc.target/powerpc/vec-cmpne.c: Remove target. * gcc.target/powerpc/vec-mul.c: Remove target. * gcc.target/powerpc/vec-set-char.c: Require LP64. * gcc.target/powerpc/vec-set-int.c: Require LP64. * gcc.target/powerpc/vec-set-short.c: Require LP64. * gcc.target/powerpc/vec-xxpermdi.c: Remove target. Require VSX. * gcc.target/powerpc/vsxcopy.c: Remove target. Require VSX. --- diff --git a/gcc/testsuite/gcc.target/powerpc/p9-extract-1.c b/gcc/testsuite/gcc.target/powerpc/p9-extract-1.c index c47ca5a34e7..2b79145d8bc 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-extract-1.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-extract-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-extract-2.c b/gcc/testsuite/gcc.target/powerpc/p9-extract-2.c index 9ffb050a759..ffbc6b93fdd 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-extract-2.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-extract-2.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-extract-3.c b/gcc/testsuite/gcc.target/powerpc/p9-extract-3.c index 15ce107c860..3c1361d3b6d 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-extract-3.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-extract-3.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-permute.c b/gcc/testsuite/gcc.target/powerpc/p9-permute.c index cf2655a6e14..b9bf05ad5ae 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-permute.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-permute.c @@ -1,6 +1,6 @@ -/* { dg-do compile { target { powerpc64*-*-* } } } */ -/* { dg-options "-mdejagnu-cpu=power9 -O2" } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ +/* { dg-options "-mdejagnu-cpu=power9 -O2" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/pr63335.c b/gcc/testsuite/gcc.target/powerpc/pr63335.c index 3398a56114e..27dbc0a91c7 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr63335.c +++ b/gcc/testsuite/gcc.target/powerpc/pr63335.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc64*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target vsx_hw } */ /* { dg-options "-mvsx" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/pr87507.c b/gcc/testsuite/gcc.target/powerpc/pr87507.c index a1d3d1bdb26..ae7c1d86152 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr87507.c +++ b/gcc/testsuite/gcc.target/powerpc/pr87507.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target powerpc64le-*-* } } */ +/* { dg-do compile } */ +/* { dg-require-effective-target int128 } */ /* { dg-options "-O2 -mdejagnu-cpu=power8" } */ typedef struct diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-1.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-1.c index 7c9871910d2..ff7b67d6610 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-1.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-1.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile { target le } } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ /* { dg-final { scan-assembler "lxvd2x" } } */ /* { dg-final { scan-assembler "stxvd2x" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-10.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-10.c index 501d8c278c3..4e5d70ca484 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-10.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-10.c @@ -1,4 +1,5 @@ -/* { dg-do run { target { powerpc64le-*-* } } } */ +/* { dg-do run } */ +/* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ void abort (); diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-11.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-11.c index b90a5e9532a..b3d0e5a40bb 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-11.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-11.c @@ -1,4 +1,5 @@ -/* { dg-do run { target { powerpc64le-*-* } } } */ +/* { dg-do run } */ +/* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-12.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-12.c index 8f9763cc888..c71918cde09 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-12.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-12.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile { target le } } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ /* { dg-final { scan-assembler "lxvd2x" } } */ /* { dg-final { scan-assembler "stxvd2x" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-13.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-13.c index a87735a177b..1fcaf532ee6 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-13.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-13.c @@ -1,4 +1,5 @@ -/* { dg-do run { target { powerpc64le-*-* } } } */ +/* { dg-do run } */ +/* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-14.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-14.c index 15f834ac042..01c4d7357ed 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-14.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-14.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ /* { dg-final { scan-assembler "lxvd2x" } } */ /* { dg-final { scan-assembler "stxvd2x" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-15.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-15.c index b7dd94620f9..6b3534a8eba 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-15.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-15.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ /* { dg-final { scan-assembler "lxvd2x" } } */ /* { dg-final { scan-assembler "stxvd2x" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-16.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-16.c index 46d2e857a5b..e8205e179d4 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-16.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-16.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ /* { dg-final { scan-assembler "lxvd2x" } } */ /* { dg-final { scan-assembler "stxvd2x" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-17.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-17.c index e81d1f53347..5edbca46f9f 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-17.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-17.c @@ -1,4 +1,5 @@ /* { dg-do compile { target { le } } } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O1 -mno-fold-gimple" } */ /* { dg-prune-output "gimple folding of rs6000 builtins has been disabled." } */ /* { dg-final { scan-assembler "lxvd2x" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-18.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-18.c index a6f3f1abf11..dadc4206c54 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-18.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-18.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ /* { dg-final { scan-assembler-not "xxpermdi" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-19.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-19.c index f15cff09a9f..d09db2005c3 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-19.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-19.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-O2 -ftree-vectorize -mdejagnu-cpu=power8 -ffast-math -fvect-cost-model=unlimited" } */ /* This tests special handling for various uses of xxpermdi, other than diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-2.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-2.c index 4c2c9085b8b..9b3c36780bc 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-2.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-2.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile { target le } } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ /* { dg-final { scan-assembler "lxvd2x" } } */ /* { dg-final { scan-assembler "stxvd2x" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-20.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-20.c index 9b63bb45db0..564e8acb1f4 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-20.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-20.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc64le-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target powerpc_altivec_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power8 -maltivec" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-21.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-21.c index 204a21902d1..f50e2659528 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-21.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-21.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_altivec_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power8 -maltivec" } */ /* The expansion for vector character multiply introduces a vperm operation. diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-22.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-22.c index 6d262e3fa61..83f6ab3a1c0 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-22.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-22.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power8 -maltivec -mcmodel=large" } */ /* The expansion for vector character multiply introduces a vperm operation. diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-23.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-23.c index 84e34314efc..bcbc8898445 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-23.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-23.c @@ -1,7 +1,8 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile { target le } } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 -ffast-math" } */ /* { dg-final { scan-assembler "lxvd2x" } } */ -/* { dg-final { scan-assembler-not "xxpermdi" } } */ +/* { dg-final { scan-assembler-not "xxpermdi" { target le } } } */ /* Verify that swap optimization works correctly in the presence of a V2DFmode reduction. */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-24.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-24.c index 29444c4cb97..fdc9e96e65c 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-24.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-24.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 -ffast-math" } */ /* { dg-final { scan-assembler "lxvd2x" } } */ /* { dg-final { scan-assembler-not "xxpermdi" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-25.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-25.c index c782796d6e8..51fab6a580e 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-25.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-25.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile { target le } } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ /* { dg-final { scan-assembler "lxvd2x" } } */ /* { dg-final { scan-assembler "stxvd2x" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-26.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-26.c index 8aef1ccf713..88f1dc6579f 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-26.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-26.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ /* { dg-final { scan-assembler-times "lxvd2x" 2 } } */ /* { dg-final { scan-assembler "stxvd2x" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-27.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-27.c index af15c2cfbfe..758542a0a62 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-27.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-27.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ /* { dg-final { scan-assembler-times "lxvd2x" 2 } } */ /* { dg-final { scan-assembler-times "stxvd2x" 1 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-28.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-28.c index 5f9a8678851..f77fe51a406 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-28.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-28.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-29.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-29.c index 711e08e12c0..ad3939f9989 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-29.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-29.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-3.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-3.c index f2499656b41..a05d4cc65b7 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-3.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-3.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile { target le } } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ /* { dg-final { scan-assembler "lxvd2x" } } */ /* { dg-final { scan-assembler "stxvd2x" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-30.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-30.c index 4745d72ad43..03d63fd048f 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-30.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-30.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-31.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-31.c index f4b7cf35c25..e31c880dd8b 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-31.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-31.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-32.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-32.c index 182d1b2d123..cafb5d4c39c 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-32.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-32.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-33.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-33.c index 0216d62e813..6b53991fd46 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-33.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-33.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-34.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-34.c index 10378188c63..449e219618b 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-34.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-34.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-35.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-35.c index bef610fa15a..2377ec2522b 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-35.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-35.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-36.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-36.c index 14c1e838e04..f05aee05da9 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-36.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-36.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-37.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-37.c index a04ae521d03..e52d804f5fa 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-37.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-37.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-38.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-38.c index 4300416cd60..b07fe8c83db 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-38.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-38.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-39.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-39.c index 1dc63f3aeab..937828bbe9e 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-39.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-39.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-4.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-4.c index 3867c0524aa..7ec59772e57 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-4.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-4.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile { target le } } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ /* { dg-final { scan-assembler "lxvd2x" } } */ /* { dg-final { scan-assembler "stxvd2x" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-40.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-40.c index 3c9a67db373..c5376d9bc46 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-40.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-40.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-41.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-41.c index ec1b9171870..30afea77b29 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-41.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-41.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-42.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-42.c index e18b1f85d9b..bd29d3fb6cd 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-42.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-42.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-43.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-43.c index 8526c08b3d3..e9245e71d5f 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-43.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-43.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-44.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-44.c index 4f4ac34fce7..57a3a3e21dc 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-44.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-44.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-45.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-45.c index 46d4303ba7d..716a8b40e82 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-45.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-45.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-46.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-46.c index 1873b4b5c88..4738d5e0139 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-46.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-46.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc64le-*-* } } } */ +/* { dg-do run { target le } } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O2 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-5.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-5.c index 885529d7adf..3c735698234 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-5.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-5.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile { target le } } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ /* { dg-final { scan-assembler "lxvd2x" } } */ /* { dg-final { scan-assembler "stxvd2x" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-6.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-6.c index c895eaa2077..c5cb8a81704 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-6.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-6.c @@ -1,4 +1,5 @@ -/* { dg-do run { target { powerpc64le-*-* } } } */ +/* { dg-do run } */ +/* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ void abort(); diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-7.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-7.c index dace6276f80..767657e3a48 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-7.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-7.c @@ -1,4 +1,5 @@ -/* { dg-do run { target { powerpc64le-*-* } } } */ +/* { dg-do run } */ +/* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ void abort (); diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-8.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-8.c index 924229dfebb..61f8ae1caa6 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-8.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-8.c @@ -1,4 +1,5 @@ -/* { dg-do run { target { powerpc64le-*-* } } } */ +/* { dg-do run } */ +/* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ void abort (); diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-9.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-9.c index dc6ea54399c..e76799cb7c6 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-9.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-9.c @@ -1,4 +1,5 @@ -/* { dg-do run { target { powerpc64le-*-* } } } */ +/* { dg-do run } */ +/* { dg-require-effective-target p8vector_hw } */ /* { dg-options "-mdejagnu-cpu=power8 -O3" } */ void abort (); diff --git a/gcc/testsuite/gcc.target/powerpc/vec-cmp.c b/gcc/testsuite/gcc.target/powerpc/vec-cmp.c index 9d53038cd80..eaeb4c6ca98 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-cmp.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-cmp.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64*-*-* } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power8" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-cmpne.c b/gcc/testsuite/gcc.target/powerpc/vec-cmpne.c index abde91662e3..edba9dece66 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-cmpne.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-cmpne.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc64*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-mvsx -O3" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-mul.c b/gcc/testsuite/gcc.target/powerpc/vec-mul.c index db573287da9..bfcaf80719d 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-mul.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-mul.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc64*-*-* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-mvsx -O3" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-set-char.c b/gcc/testsuite/gcc.target/powerpc/vec-set-char.c index 841a917dde1..eb7296db7dd 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-set-char.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-set-char.c @@ -1,9 +1,9 @@ -#include - -/* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ +#include + vector char insert_0_0 (vector char v) { diff --git a/gcc/testsuite/gcc.target/powerpc/vec-set-int.c b/gcc/testsuite/gcc.target/powerpc/vec-set-int.c index e3217b4c14f..6dc7d73a0fd 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-set-int.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-set-int.c @@ -1,9 +1,9 @@ -#include - -/* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ +#include + vector int insert_0_0 (vector int v) { diff --git a/gcc/testsuite/gcc.target/powerpc/vec-set-short.c b/gcc/testsuite/gcc.target/powerpc/vec-set-short.c index 2daf0a79a9f..a03ada72c62 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-set-short.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-set-short.c @@ -1,9 +1,9 @@ -#include - -/* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ +#include + vector short insert_0_0 (vector short v) { diff --git a/gcc/testsuite/gcc.target/powerpc/vec-xxpermdi.c b/gcc/testsuite/gcc.target/powerpc/vec-xxpermdi.c index d56276a3dd9..d57aca5bc30 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-xxpermdi.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-xxpermdi.c @@ -1,4 +1,5 @@ -/* { dg-do run { target { powerpc64*-*-* && vsx_hw } } } */ +/* { dg-do run } */ +/* { dg-require-effective-target vsx_hw } */ /* { dg-options "-O2 -mvsx" } */ /* Added for PR79261 to test that vec_xxpermdi works correctly for diff --git a/gcc/testsuite/gcc.target/powerpc/vsxcopy.c b/gcc/testsuite/gcc.target/powerpc/vsxcopy.c index 61c9f77b771..d1b7c4b812a 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsxcopy.c +++ b/gcc/testsuite/gcc.target/powerpc/vsxcopy.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64*-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-O1 -mvsx" } */ /* { dg-final { scan-assembler {\m(lxvd2x|lxv)\M} } } */