From c0e05505ffd58d3d0ed9c22e0cc6b954e25c8b1b Mon Sep 17 00:00:00 2001 From: Will Schmidt Date: Tue, 11 Feb 2020 10:27:25 -0600 Subject: [PATCH] Tweak testcases for pr70010 [testsuite] * gcc.target/powerpc/pr70010-2.c: Add -maltivec. * gcc.target/powerpc/pr70010-3.c: Add -maltivec. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/powerpc/pr70010-2.c | 3 ++- gcc/testsuite/gcc.target/powerpc/pr70010-3.c | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e90ba18466f..27aa4ac1cc5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-02-11 Will Schmidt + + * gcc.target/powerpc/pr70010-2.c: Add -maltivec. + * gcc.target/powerpc/pr70010-3.c: Add -maltivec. + 2020-02-11 Stam Markianos-Wright * gcc.target/arm/simd/vdot-2-1.c: New test. diff --git a/gcc/testsuite/gcc.target/powerpc/pr70010-2.c b/gcc/testsuite/gcc.target/powerpc/pr70010-2.c index 0c04c5390db..dd242081537 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr70010-2.c +++ b/gcc/testsuite/gcc.target/powerpc/pr70010-2.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -flto -mno-vsx" } */ +/* { dg-options "-O2 -flto -maltivec -mno-vsx" } */ /* { dg-require-effective-target lto } */ +/* { dg-require-effective-target powerpc_altivec_ok } */ vector int c, a, b; diff --git a/gcc/testsuite/gcc.target/powerpc/pr70010-3.c b/gcc/testsuite/gcc.target/powerpc/pr70010-3.c index bca31875632..9fd97d10074 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr70010-3.c +++ b/gcc/testsuite/gcc.target/powerpc/pr70010-3.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mno-vsx" } */ +/* { dg-options "-O2 -maltivec -mno-vsx" } */ +/* { dg-require-effective-target powerpc_altivec_ok } */ vector int c, a, b; -- 2.30.2