From efb802cbcaf3ef148534622847a700e470de7c52 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 13 Feb 2017 17:51:25 +0100 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/powerpc/vec-adde-int128.c | 3 +-- gcc/testsuite/gcc.target/powerpc/vec-addec-int128.c | 3 +-- 3 files changed, 8 insertions(+), 4 deletions(-) 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" } */ -- 2.30.2