]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix fold-vec-splat-floatdouble testsuite failure on power10
authorMichael Meissner <meissner@linux.ibm.com>
Sat, 22 Jan 2022 02:36:18 +0000 (21:36 -0500)
committerMichael Meissner <meissner@linux.ibm.com>
Sat, 22 Jan 2022 02:36:18 +0000 (21:36 -0500)
When I added support for generating XXSPLTIDP on December 15th, 2021, I
missed updating the fold-vec-splat-floatdouble.c test to add to the regex
for the instructions generated.  This patch fixes that.

2022-01-20  Michael Meissner  <meissner@the-meissners.org>

gcc/testsuite/

PR testsuite/103763
* gcc.target/powerpc/fold-vec-splat-floatdouble.c: Fix insn regex
on power10.

gcc/testsuite/gcc.target/powerpc/fold-vec-splat-floatdouble.c

index b95fa324633e8f5da8eb8d4c094d2b066af95efa..01f1b0dadf3256ee003575ceaff4bf3632821629 100644 (file)
@@ -21,12 +21,11 @@ vector double test_dc ()
 { const vector double y = { 3.0, 5.0 }; return vec_splat (y, 0b00001); }
 
 /* If the source vector is a known constant, we will generate a load or possibly
-   XXSPLTIW.  */
-/* { dg-final { scan-assembler-times {\mlvx\M|\mlxvd2x\M|\mlxv\M|\mplxv\M|\mxxspltiw\M} 2 } } */
+   XXSPLTIW/XXSPLTIDP.  */
+/* { dg-final { scan-assembler-times {\mlvx\M|\mlxvd2x\M|\mlxv\M|\mplxv\M|\mxxspltiw\M|\mxxspltidp\M} 2 } } */
 
 /* For float types, we generate a splat.  */
 /* { dg-final { scan-assembler-times {\mvspltw\M|\mxxspltw\M} 3 } } */
 
 /* For double types, we will generate xxpermdi instructions.  */
 /* { dg-final { scan-assembler-times "xxpermdi" 2 } } */
-