From: Segher Boessenkool Date: Mon, 18 Mar 2019 17:46:18 +0000 (+0100) Subject: rs6000: Fix altivec-7.c testcase X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a1d5d6a8edfc9cc08f4a15f70d9240470f05b0c;p=gcc.git 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 --- 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 } } */