From: Kewen Lin Date: Wed, 8 Mar 2023 06:56:32 +0000 (-0600) Subject: testsuite: Adjust pr101384-2.c for Power9 [PR108813] X-Git-Tag: upstream/13.1.0~704 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3be550e35e1c67327d3724380632512872224178;p=platform%2Fupstream%2Fgcc.git testsuite: Adjust pr101384-2.c for Power9 [PR108813] Compiled with cpu type Power9 or later, GCC generates xxspltib rather than vspltis*, so adjust the test case scanning content accordingly. PR testsuite/108813 gcc/testsuite/ChangeLog: * gcc.target/powerpc/pr101384-2.c: Adjust with xxspltib. --- diff --git a/gcc/testsuite/gcc.target/powerpc/pr101384-2.c b/gcc/testsuite/gcc.target/powerpc/pr101384-2.c index f395708..c14891b 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr101384-2.c +++ b/gcc/testsuite/gcc.target/powerpc/pr101384-2.c @@ -2,7 +2,7 @@ /* { dg-do compile { target be } } */ /* { 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 } } */