]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Adjust pr101384-2.c for Power9 [PR108813]
authorKewen Lin <linkw@linux.ibm.com>
Wed, 8 Mar 2023 06:56:32 +0000 (00:56 -0600)
committerKewen Lin <linkw@linux.ibm.com>
Wed, 8 Mar 2023 06:56:32 +0000 (00:56 -0600)
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.

gcc/testsuite/gcc.target/powerpc/pr101384-2.c

index f3957086b045c1ce003997901b1815790000d1b2..c14891b5ab47fac5b6828413bcc72d9335dfd4be 100644 (file)
@@ -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 } } */