From: Segher Boessenkool Date: Mon, 13 Feb 2017 16:51:25 +0000 (+0100) Subject: rs6000: testsuite: Fix vec-adde[c]-int128.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=efb802cbcaf3ef148534622847a700e470de7c52;p=gcc.git rs6000: testsuite: Fix vec-adde[c]-int128.c These are a runtime testcases so they should test p8vector_hw instead of powerpc_p8vector_ok, or they will fail with an illegal instruction on older processors. Also they run on any PowerPC, not with just those compilers that were configured to default to 64-bit targets. gcc/testsuite/ * gcc.target/powerpc/vec-adde-int128.c: Use p8vector_hw instead of powerpc_p8vector_ok. * gcc.target/powerpc/vec-addec-int128.c: Ditto. From-SVN: r245395 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b5e225e2acf..2037bfdcdf8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-02-13 Segher Boessenkool + + * gcc.target/powerpc/vec-adde-int128.c: Use p8vector_hw instead of + powerpc_p8vector_ok. + * gcc.target/powerpc/vec-addec-int128.c: Ditto. + 2017-02-13 Aaron Sawdey PR target/79449 diff --git a/gcc/testsuite/gcc.target/powerpc/vec-adde-int128.c b/gcc/testsuite/gcc.target/powerpc/vec-adde-int128.c index 4f951a993db..8eed7f58f92 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-adde-int128.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-adde-int128.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" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-addec-int128.c b/gcc/testsuite/gcc.target/powerpc/vec-addec-int128.c index f95143a7e0a..4388e062582 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-addec-int128.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-addec-int128.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" } */