From: David Edelsohn Date: Wed, 28 Oct 2020 18:01:17 +0000 (-0400) Subject: testsuite: Adjust target requirements for sad-vectorize and signbit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=122f0db27933e6e34e073c9c4d27a10801652ebd;p=gcc.git testsuite: Adjust target requirements for sad-vectorize and signbit. More testcases with incorrect target selectors. gcc/testsuite/ChangeLog: * gcc.target/powerpc/sad-vectorize-1.c: Remove AIX skip. * gcc.target/powerpc/sad-vectorize-2.c: Remove AIX skip. * gcc.target/powerpc/sad-vectorize-3.c: Remove target. Require p9vector_hw. * gcc.target/powerpc/sad-vectorize-4.c: Remove target. Require p9vector_hw. * gcc.target/powerpc/signbit-1.c: Remove target. Require ppc_float128_sw. * gcc.target/powerpc/signbit-2.c: Remove target. Require ppc_float128_sw. * gcc.target/powerpc/signbit-3.c: Remove target. Require ppc_float128_sw. --- diff --git a/gcc/testsuite/gcc.target/powerpc/sad-vectorize-1.c b/gcc/testsuite/gcc.target/powerpc/sad-vectorize-1.c index 9cc14e4b229..326a821add8 100644 --- a/gcc/testsuite/gcc.target/powerpc/sad-vectorize-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sad-vectorize-1.c @@ -1,6 +1,5 @@ /* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ -/* { dg-skip-if "" { powerpc*-*-aix* } } */ /* { dg-options "-O3 -mdejagnu-cpu=power9" } */ /* Verify that we vectorize this SAD loop using vabsdub. */ diff --git a/gcc/testsuite/gcc.target/powerpc/sad-vectorize-2.c b/gcc/testsuite/gcc.target/powerpc/sad-vectorize-2.c index e1de52b7258..3ae5c4805f9 100644 --- a/gcc/testsuite/gcc.target/powerpc/sad-vectorize-2.c +++ b/gcc/testsuite/gcc.target/powerpc/sad-vectorize-2.c @@ -1,6 +1,5 @@ /* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ -/* { dg-skip-if "" { powerpc*-*-aix* } } */ /* { dg-options "-O3 -mdejagnu-cpu=power9" } */ /* Verify that we vectorize this SAD loop using vabsduh. */ diff --git a/gcc/testsuite/gcc.target/powerpc/sad-vectorize-3.c b/gcc/testsuite/gcc.target/powerpc/sad-vectorize-3.c index bb10fe61c97..2986abb8df5 100644 --- a/gcc/testsuite/gcc.target/powerpc/sad-vectorize-3.c +++ b/gcc/testsuite/gcc.target/powerpc/sad-vectorize-3.c @@ -1,5 +1,5 @@ -/* { dg-do run { target { powerpc*-*-linux* && { lp64 && p9vector_hw } } } } */ -/* { dg-require-effective-target powerpc_p9vector_ok } */ +/* { dg-do run } */ +/* { dg-require-effective-target p9vector_hw } */ /* { dg-options "-O3 -mdejagnu-cpu=power9" } */ /* Verify that we get correct code when we vectorize this SAD loop using diff --git a/gcc/testsuite/gcc.target/powerpc/sad-vectorize-4.c b/gcc/testsuite/gcc.target/powerpc/sad-vectorize-4.c index 15f5d148c56..d24e2a81325 100644 --- a/gcc/testsuite/gcc.target/powerpc/sad-vectorize-4.c +++ b/gcc/testsuite/gcc.target/powerpc/sad-vectorize-4.c @@ -1,5 +1,5 @@ -/* { dg-do run { target { powerpc*-*-linux* && { lp64 && p9vector_hw } } } } */ -/* { dg-require-effective-target powerpc_p9vector_ok } */ +/* { dg-do run } */ +/* { dg-require-effective-target p9vector_hw } */ /* { dg-options "-O3 -mdejagnu-cpu=power9" } */ /* Verify that we get correct code when we vectorize this SAD loop using diff --git a/gcc/testsuite/gcc.target/powerpc/signbit-1.c b/gcc/testsuite/gcc.target/powerpc/signbit-1.c index 552dd1baa19..eb4f53e397d 100644 --- a/gcc/testsuite/gcc.target/powerpc/signbit-1.c +++ b/gcc/testsuite/gcc.target/powerpc/signbit-1.c @@ -1,5 +1,5 @@ -/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ -/* { dg-skip-if "" { powerpc*-*-darwin* } } */ +/* { dg-do compile } */ +/* { dg-require-effective-target ppc_float128_sw } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O2 -mfloat128" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/signbit-2.c b/gcc/testsuite/gcc.target/powerpc/signbit-2.c index d17fc81c075..ff6af963dda 100644 --- a/gcc/testsuite/gcc.target/powerpc/signbit-2.c +++ b/gcc/testsuite/gcc.target/powerpc/signbit-2.c @@ -1,6 +1,6 @@ -/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ -/* { dg-skip-if "" { powerpc*-*-darwin* } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ +/* { dg-require-effective-target ppc_float128_sw } */ /* { dg-options "-mdejagnu-cpu=power9 -O2 -mfloat128" } */ int do_signbit_kf (__float128 *a) { return __builtin_signbit (*a); } diff --git a/gcc/testsuite/gcc.target/powerpc/signbit-3.c b/gcc/testsuite/gcc.target/powerpc/signbit-3.c index 68d641edc2c..2d1ecb96351 100644 --- a/gcc/testsuite/gcc.target/powerpc/signbit-3.c +++ b/gcc/testsuite/gcc.target/powerpc/signbit-3.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-linux* } } } */ +/* { dg-do run } */ /* { dg-require-effective-target ppc_float128_sw } */ /* { dg-options "-mdejagnu-cpu=power7 -O2 -mfloat128 -lm" } */