From 5a1d5d6a8edfc9cc08f4a15f70d9240470f05b0c Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 18 Mar 2019 18:46:18 +0100 Subject: [PATCH] rs6000: Fix altivec-7.c testcase It currently wants to see lvx insns on AIX, and no lvx insns on Linux. What is really wanted is lvx insns when no VSX, and lxv* insns if VSX. This fixes it. * gcc.target/powerpc/altivec-7.c: Look for lxv* if generating VSX instructions, and lvx if not. From-SVN: r269772 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/powerpc/altivec-7.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ba77fc55201..18a24a7454b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -4,6 +4,12 @@ the "store" test as well. * gcc.target/powerpc/bswap32.c: Ditto. +2019-03-18 Segher Boessenkool + + * gcc.target/powerpc/bswap16.c: Use a pointer instead of a global for + the "store" test as well. + * gcc.target/powerpc/bswap32.c: Ditto. + 2019-03-18 Segher Boessenkool * gcc.target/powerpc/pr18096-1.c: Allow an error message that says diff --git a/gcc/testsuite/gcc.target/powerpc/altivec-7.c b/gcc/testsuite/gcc.target/powerpc/altivec-7.c index ebc4a85ed8b..42c04a1ed79 100644 --- a/gcc/testsuite/gcc.target/powerpc/altivec-7.c +++ b/gcc/testsuite/gcc.target/powerpc/altivec-7.c @@ -85,8 +85,10 @@ int main () /* { dg-final { scan-assembler-times "vpkpx" 2 } } */ /* { dg-final { scan-assembler-times "vmulesb" 1 } } */ /* { dg-final { scan-assembler-times "vmulosb" 1 } } */ -/* { dg-final { scan-assembler-times {\mlvx\M} 0 { target { powerpc*-*-linux* } } } } */ -/* { dg-final { scan-assembler-times {\mlvx\M} 42 { target { powerpc*-*-aix* } } } } */ +/* { dg-final { scan-assembler-times {\mlvx\M} 42 { target { ! powerpc_vsx } } } } */ +/* { dg-final { scan-assembler-times {\mlxv} 0 { target { ! powerpc_vsx } } } } */ +/* { dg-final { scan-assembler-times {\mlvx\M} 0 { target powerpc_vsx } } } */ +/* { dg-final { scan-assembler-times {\mlxv} 42 { target powerpc_vsx } } } */ /* { dg-final { scan-assembler-times "lvewx" 2 } } */ /* { dg-final { scan-assembler-times "lvxl" 1 } } */ /* { dg-final { scan-assembler-times "vupklsh" 2 } } */ -- 2.30.2