From 2932fe90d51b39404bd0b564415b6f5149f10f9b Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Tue, 14 Feb 2017 21:27:54 +0100 Subject: [PATCH] rs6000: Fix the vec-adde* testcases once more David found the vec-adde{,c}-int128.c testcases fail on AIX. Those tests should only run on targets that have int128. This also changes the non-int128 testcases to check for the hardware they require. gcc/testsuite/ * gcc.target/powerpc/vec-adde-int128.c: Only run if int128 exists. * gcc.target/powerpc/vec-addec-int128.c: Ditto. * gcc.target/powerpc/vec-adde.c: Require vsx_hw, don't require a 64-bit default target. * gcc.target/powerpc/vec-addec.c: Require p8vector_hw, don't require a 64-bit default target. From-SVN: r245453 --- gcc/testsuite/ChangeLog | 9 +++++++++ gcc/testsuite/gcc.target/powerpc/vec-adde-int128.c | 2 +- gcc/testsuite/gcc.target/powerpc/vec-adde.c | 3 +-- gcc/testsuite/gcc.target/powerpc/vec-addec-int128.c | 2 +- gcc/testsuite/gcc.target/powerpc/vec-addec.c | 3 +-- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8adb64f75ed..280f9e4c233 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2017-02-14 Segher Boessenkool + + * gcc.target/powerpc/vec-adde-int128.c: Only run if int128 exists. + * gcc.target/powerpc/vec-addec-int128.c: Ditto. + * gcc.target/powerpc/vec-adde.c: Require vsx_hw, don't require a + 64-bit default target. + * gcc.target/powerpc/vec-addec.c: Require p8vector_hw, don't require + a 64-bit default target. + 2017-02-14 Jakub Jelinek PR target/79481 diff --git a/gcc/testsuite/gcc.target/powerpc/vec-adde-int128.c b/gcc/testsuite/gcc.target/powerpc/vec-adde-int128.c index 8eed7f58f92..03e89dfd9d7 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-adde-int128.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-adde-int128.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* && p8vector_hw } } } */ +/* { dg-do run { target { powerpc*-*-* && { p8vector_hw && int128 } } } } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */ /* { dg-options "-mcpu=power8 -O3" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-adde.c b/gcc/testsuite/gcc.target/powerpc/vec-adde.c index a235a1c987d..b6f87da5330 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-adde.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-adde.c @@ -1,5 +1,4 @@ -/* { dg-do run { target { powerpc64*-*-* } } } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-do run { target { powerpc*-*-* && vsx_hw } } } */ /* { dg-options "-mvsx -O3" } */ /* Test that the vec_adde builtin works as expected. */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-addec-int128.c b/gcc/testsuite/gcc.target/powerpc/vec-addec-int128.c index 4388e062582..3baa82ba953 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-addec-int128.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-addec-int128.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* && p8vector_hw } } } */ +/* { dg-do run { target { powerpc*-*-* && { p8vector_hw && int128 } } } } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */ /* { dg-options "-mcpu=power8 -O3" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-addec.c b/gcc/testsuite/gcc.target/powerpc/vec-addec.c index 53bd41f4b91..330ec2371d7 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-addec.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-addec.c @@ -1,5 +1,4 @@ -/* { dg-do run { target { powerpc64*-*-* } } } */ -/* { dg-require-effective-target powerpc_p8vector_ok } */ +/* { dg-do run { target { powerpc*-*-* && p8vector_hw } } } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */ /* { dg-options "-mcpu=power8 -O3" } */ -- 2.30.2