From cb6b952a226e12a95fe24d12d1a0d9c63bc090da Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Sat, 17 Oct 2020 16:58:43 -0400 Subject: [PATCH] testsuite: simplify target requirements for various Power9 testcases. This patch removes unnnecessary or simplifies requirements for various Power9 testcase. gcc/testsuite/ChangeLog: * gcc.target/powerpc/p9-dimode1.c: Remove target. * gcc.target/powerpc/p9-dimode2.c: Remove target. * gcc.target/powerpc/p9-fpcvt-1.c: Remove target. * gcc.target/powerpc/p9-fpcvt-2.c: Require lp64. * gcc.target/powerpc/p9-minmax-1.c: Remove target. * gcc.target/powerpc/p9-minmax-2.c: Remove target. * gcc.target/powerpc/p9-minmax-3.c: Remove target. * gcc.target/powerpc/p9-splat-1.c: Require lp64. * gcc.target/powerpc/p9-splat-2.c: Remove target. * gcc.target/powerpc/p9-splat-3.c: Remove target. * gcc.target/powerpc/p9-splat-4.c: Require lp64. * gcc.target/powerpc/p9-vbpermd.c: Require lp64. * gcc.target/powerpc/p9-vneg.c: Require lp64. * gcc.target/powerpc/p9-vparity.c: Require lp64. * gcc.target/powerpc/p9-vpermr.c: Require LE. * gcc.target/powerpc/p9-xxbr-1.c: Remove target. * gcc.target/powerpc/p9-xxbr-2.c: Require lp64. * gcc.target/powerpc/p9-xxbr-3.c: Require lp64. --- gcc/testsuite/gcc.target/powerpc/p9-dimode1.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-dimode2.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-fpcvt-1.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-fpcvt-2.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-minmax-1.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-minmax-2.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-minmax-3.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-splat-1.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-splat-2.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-splat-3.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-splat-4.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-vbpermd.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-vneg.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-vparity.c | 3 ++- gcc/testsuite/gcc.target/powerpc/p9-vpermr.c | 3 ++- gcc/testsuite/gcc.target/powerpc/p9-xxbr-1.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-xxbr-2.c | 2 +- gcc/testsuite/gcc.target/powerpc/p9-xxbr-3.c | 4 ++-- 18 files changed, 21 insertions(+), 19 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/p9-dimode1.c b/gcc/testsuite/gcc.target/powerpc/p9-dimode1.c index b2cd3d68221..9914f94a563 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-dimode1.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-dimode1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-dimode2.c b/gcc/testsuite/gcc.target/powerpc/p9-dimode2.c index c2196a2b586..6d747289da5 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-dimode2.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-dimode2.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-fpcvt-1.c b/gcc/testsuite/gcc.target/powerpc/p9-fpcvt-1.c index e7e9d9a3328..3ad81980e8f 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-fpcvt-1.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-fpcvt-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-fpcvt-2.c b/gcc/testsuite/gcc.target/powerpc/p9-fpcvt-2.c index 11999e44dae..c7ea1c29928 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-fpcvt-2.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-fpcvt-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-minmax-1.c b/gcc/testsuite/gcc.target/powerpc/p9-minmax-1.c index 5a54bcbaa32..686fdccb850 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-minmax-1.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-minmax-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2 -mpower9-minmax -ffast-math" } */ /* { dg-final { scan-assembler-not "fsel" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-minmax-2.c b/gcc/testsuite/gcc.target/powerpc/p9-minmax-2.c index 94747b87a78..78a3d9ae217 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-minmax-2.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-minmax-2.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2 -mpower9-minmax" } */ /* { dg-final { scan-assembler-not "fsel" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-minmax-3.c b/gcc/testsuite/gcc.target/powerpc/p9-minmax-3.c index 141603e05b4..3248b9aa62a 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-minmax-3.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-minmax-3.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2 -mpower9-minmax" } */ /* { dg-final { scan-assembler-not "xsmaxcdp" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-splat-1.c b/gcc/testsuite/gcc.target/powerpc/p9-splat-1.c index d0cb1cc82ac..ecb8d26961e 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-splat-1.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-splat-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-splat-2.c b/gcc/testsuite/gcc.target/powerpc/p9-splat-2.c index 4ad8a36d790..efbe7e1a229 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-splat-2.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-splat-2.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-splat-3.c b/gcc/testsuite/gcc.target/powerpc/p9-splat-3.c index 4384a234f1a..3cfacb2914c 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-splat-3.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-splat-3.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-splat-4.c b/gcc/testsuite/gcc.target/powerpc/p9-splat-4.c index 7d084600729..b31744500ee 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-splat-4.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-splat-4.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-vbpermd.c b/gcc/testsuite/gcc.target/powerpc/p9-vbpermd.c index 1252c540923..b26a8f99d2f 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-vbpermd.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-vbpermd.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64*-*-* } } } */ +/* { 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-vneg.c b/gcc/testsuite/gcc.target/powerpc/p9-vneg.c index 9e1c9bd3f2a..7d6e9bcb5eb 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-vneg.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-vneg.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc64*-*-* } } } */ +/* { 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-vparity.c b/gcc/testsuite/gcc.target/powerpc/p9-vparity.c index bd6c83d1b3b..f4aba1567cd 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-vparity.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-vparity.c @@ -1,5 +1,6 @@ -/* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ +/* { dg-require-effective-target int128 } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-vpermr.c b/gcc/testsuite/gcc.target/powerpc/p9-vpermr.c index 9c77e3306bc..6f87640d268 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-vpermr.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-vpermr.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target { powerpc64le-*-* } } } */ +/* { dg-do compile { target le } } */ +/* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ /* Test generation of VPERMR/XXPERMR on ISA 3.0 in little endian. */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-xxbr-1.c b/gcc/testsuite/gcc.target/powerpc/p9-xxbr-1.c index 8ef7880e11f..a449dda9cb1 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-xxbr-1.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-xxbr-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc*-*-* && { lp64 && p9vector_hw } } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O3" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-xxbr-2.c b/gcc/testsuite/gcc.target/powerpc/p9-xxbr-2.c index de6d5bac137..a14ac68f1c5 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-xxbr-2.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-xxbr-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-xxbr-3.c b/gcc/testsuite/gcc.target/powerpc/p9-xxbr-3.c index 98ad7ebfd87..62a946fd2b3 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-xxbr-3.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-xxbr-3.c @@ -1,6 +1,6 @@ -/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ -/* { dg-options "-mpower9-vector -O2" } */ +/* { dg-options "-mdejagnu-cpu=power9 -O2" } */ /* Verify that the XXBR{H,W} instructions are generated if the value is forced to be in a vector register, and XXBRD is generated all of the -- 2.30.2