test: Adjust case p9-vec-length-full-6.c [PR97075]
authorKewen Lin <linkw@linux.ibm.com>
Thu, 24 Sep 2020 05:40:47 +0000 (00:40 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Thu, 24 Sep 2020 05:45:07 +0000 (00:45 -0500)
The commit r11-3230 brings a nice improvement to use full
vectors instead of partial vectors when available.  This
patch is to fix the test failures on p9-vec-length-full-6.c,
where 64bit/32bit pairs are able to use full vector instead.

Bootstrapped/regtested on powerpc64le-linux-gnu P9.

gcc/testsuite/ChangeLog:

PR tree-optimization/97075
* gcc.target/powerpc/p9-vec-length-full-6.c: Adjust.

gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-6.c

index cfae9bbc92783ebda6b9e1a74fabda16d5a5f8f9..5d2357aabfa5752847f649edc3ab4808dafd14d7 100644 (file)
@@ -9,8 +9,7 @@
 #include "p9-vec-length-6.h"
 
 /* It can use normal vector load for constant vector load.  */
-/* { dg-final { scan-assembler-not   {\mstxv\M} } } */
-/* { dg-final { scan-assembler-not   {\mlxvx\M} } } */
-/* { dg-final { scan-assembler-not   {\mstxvx\M} } } */
-/* { dg-final { scan-assembler-times {\mlxvl\M} 16 } } */
-/* { dg-final { scan-assembler-times {\mstxvl\M} 16 } } */
+/* { dg-final { scan-assembler-times {\mstxvx?\M} 6 } } */
+/* 64bit/32bit pairs won't use partial vectors.  */
+/* { dg-final { scan-assembler-times {\mlxvl\M} 10 } } */
+/* { dg-final { scan-assembler-times {\mstxvl\M} 10 } } */