From: Michael Meissner Date: Wed, 12 Jan 2022 16:56:22 +0000 (-0500) Subject: Fix pr101384-1.c code generation test. X-Git-Tag: basepoints/gcc-13~1781 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18d88d11973c63bda4e586b979b71d48c1d9b78a;p=thirdparty%2Fgcc.git Fix pr101384-1.c code generation test. Add support for the compiler using XXSPLTIB reg,255 to load all 1's into a register on power9 and above instead of using VSPLTI{B,H,W} reg,-1. gcc/testsuite/ 2022-01-12 Michael Meissner PR testsuite/102935 * gcc.target/powerpc/pr101384-1.c: Update insn regexp for power9 and power10. --- diff --git a/gcc/testsuite/gcc.target/powerpc/pr101384-1.c b/gcc/testsuite/gcc.target/powerpc/pr101384-1.c index 627d7d767219..41cf84bf8bcf 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr101384-1.c +++ b/gcc/testsuite/gcc.target/powerpc/pr101384-1.c @@ -2,7 +2,7 @@ /* { dg-do compile { target le } } */ /* { dg-options "-O2 -maltivec" } */ /* { dg-require-effective-target powerpc_altivec_ok } */ -/* { dg-final { scan-assembler-times {\mvspltis[whb] [^\n\r]*,-1\M} 9 } } */ +/* { dg-final { scan-assembler-times {\mvspltis[whb] [^\n\r]*,-1\M|\mxxspltib[^\n\r]*,255\M} 9 } } */ /* { dg-final { scan-assembler-times {\mvslw\M} 3 } } */ /* { dg-final { scan-assembler-times {\mvslh\M} 3 } } */ /* { dg-final { scan-assembler-times {\mvslb\M} 3 } } */