From ef4ddda8c217b6ef41dabf828c580760921a5cfe Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Fri, 9 Aug 2019 19:33:25 +0200 Subject: [PATCH] rs6000: vec-rotate-*.c fixes This fixes two minor problems with the new testcases. The first is that almost all other tests, including all vec* tests, for powerpc use names with dashes, not underscores. The more important one is the the vec-rotate-1.c and vec-rotate-3.c tests need the -maltivec flag. gcc/testsuite/ * gcc.target/powerpc/vec_rotate-1.c: Rename to ... * gcc.target/powerpc/vec-rotate-1.c: ... this. Add -maltivec option. * gcc.target/powerpc/vec_rotate-2.c: Rename to ... * gcc.target/powerpc/vec-rotate-2.c: ... this. * gcc.target/powerpc/vec_rotate-3.c: Rename to ... * gcc.target/powerpc/vec-rotate-3.c: ... this. Add -maltivec option. * gcc.target/powerpc/vec_rotate-4.c: Rename to ... * gcc.target/powerpc/vec-rotate-4.c: ... this. From-SVN: r274239 --- gcc/testsuite/ChangeLog | 11 +++++++++++ .../powerpc/{vec_rotate-1.c => vec-rotate-1.c} | 2 +- .../powerpc/{vec_rotate-2.c => vec-rotate-2.c} | 0 .../powerpc/{vec_rotate-3.c => vec-rotate-3.c} | 2 +- .../powerpc/{vec_rotate-4.c => vec-rotate-4.c} | 0 5 files changed, 13 insertions(+), 2 deletions(-) rename gcc/testsuite/gcc.target/powerpc/{vec_rotate-1.c => vec-rotate-1.c} (96%) rename gcc/testsuite/gcc.target/powerpc/{vec_rotate-2.c => vec-rotate-2.c} (100%) rename gcc/testsuite/gcc.target/powerpc/{vec_rotate-3.c => vec-rotate-3.c} (96%) rename gcc/testsuite/gcc.target/powerpc/{vec_rotate-4.c => vec-rotate-4.c} (100%) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 51d0a87730b..7b2ce9057e9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2019-08-09 Segher Boessenkool + + * gcc.target/powerpc/vec_rotate-1.c: Rename to ... + * gcc.target/powerpc/vec-rotate-1.c: ... this. Add -maltivec option. + * gcc.target/powerpc/vec_rotate-2.c: Rename to ... + * gcc.target/powerpc/vec-rotate-2.c: ... this. + * gcc.target/powerpc/vec_rotate-3.c: Rename to ... + * gcc.target/powerpc/vec-rotate-3.c: ... this. Add -maltivec option. + * gcc.target/powerpc/vec_rotate-4.c: Rename to ... + * gcc.target/powerpc/vec-rotate-4.c: ... this. + 2019-08-09 Sam Tebbs * lib/target-supports.exp diff --git a/gcc/testsuite/gcc.target/powerpc/vec_rotate-1.c b/gcc/testsuite/gcc.target/powerpc/vec-rotate-1.c similarity index 96% rename from gcc/testsuite/gcc.target/powerpc/vec_rotate-1.c rename to gcc/testsuite/gcc.target/powerpc/vec-rotate-1.c index f035a578292..6fe96272dde 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec_rotate-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-rotate-1.c @@ -1,4 +1,4 @@ -/* { dg-options "-O3" } */ +/* { dg-options "-O3 -maltivec" } */ /* { dg-require-effective-target powerpc_altivec_ok } */ /* Check vectorizer can exploit vector rotation instructions on Power, mainly diff --git a/gcc/testsuite/gcc.target/powerpc/vec_rotate-2.c b/gcc/testsuite/gcc.target/powerpc/vec-rotate-2.c similarity index 100% rename from gcc/testsuite/gcc.target/powerpc/vec_rotate-2.c rename to gcc/testsuite/gcc.target/powerpc/vec-rotate-2.c diff --git a/gcc/testsuite/gcc.target/powerpc/vec_rotate-3.c b/gcc/testsuite/gcc.target/powerpc/vec-rotate-3.c similarity index 96% rename from gcc/testsuite/gcc.target/powerpc/vec_rotate-3.c rename to gcc/testsuite/gcc.target/powerpc/vec-rotate-3.c index 5e90ae6fd63..373056256fc 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec_rotate-3.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-rotate-3.c @@ -1,4 +1,4 @@ -/* { dg-options "-O3" } */ +/* { dg-options "-O3 -maltivec" } */ /* { dg-require-effective-target powerpc_altivec_ok } */ /* Check vectorizer can exploit vector rotation instructions on Power, mainly diff --git a/gcc/testsuite/gcc.target/powerpc/vec_rotate-4.c b/gcc/testsuite/gcc.target/powerpc/vec-rotate-4.c similarity index 100% rename from gcc/testsuite/gcc.target/powerpc/vec_rotate-4.c rename to gcc/testsuite/gcc.target/powerpc/vec-rotate-4.c -- 2.30.2