gcc.target/powerpc/vsx-builtin-7.c uses fewer xxpermdi insns than expected on ilp32. Adjust.
Regstrapped on powerpc64le-linux-gnu. Also tested with gcc-14 on x86_64-linux-x-powerpc-elf. Ok to install? for gcc/testsuite/ChangeLog * gcc.target/powerpc/vsx-builtin-7.c: Adjust xxpermdi count on ilp32. --- gcc/testsuite/gcc.target/powerpc/vsx-builtin-7.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/vsx-builtin-7.c b/gcc/testsuite/gcc.target/powerpc/vsx-builtin-7.c index 4de240c6a95d8..20e4483c1aa7f 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsx-builtin-7.c +++ b/gcc/testsuite/gcc.target/powerpc/vsx-builtin-7.c @@ -194,8 +194,9 @@ vector unsigned __int128 splat_uint128 (unsigned __int128 x) { return vec_splats /* { dg-final { scan-assembler-times {\mrldic\M} 0 { target { be && ilp32 } } } } */ /* { dg-final { scan-assembler-times {\mrldic\M} 65 { target { be && lp64 } } } } */ /* { dg-final { scan-assembler-times {\mrldic\M} 65 { target le } } } */ -/* { dg-final { scan-assembler-times "xxpermdi" 33 { target be } } } */ -/* { dg-final { scan-assembler-times "xxpermdi" 35 { target le } } } */ +/* { dg-final { scan-assembler-times "xxpermdi" 32 { target ilp32 } } } */ +/* { dg-final { scan-assembler-times "xxpermdi" 33 { target { be && lp64 } } } } */ +/* { dg-final { scan-assembler-times "xxpermdi" 35 { target { le && lp64 } } } } */ /* { dg-final { scan-assembler-times "vspltisb" 2 } } */ /* { dg-final { scan-assembler-times "vspltish" 2 } } */ /* { dg-final { scan-assembler-times "vspltisw" 2 { target be } } } */ -- Alexandre Oliva, happy hacker https://blog.lx.oliva.nom.br/ Free Software Activist FSFLA co-founder GNU Toolchain Engineer More tolerance and less prejudice are key for inclusion and diversity. Excluding neuro-others for not behaving ""normal"" is *not* inclusive!