From 5427bd4d57c0376e51fc7b256e76aa46c43aa8cf Mon Sep 17 00:00:00 2001 From: Kewen Lin Date: Thu, 24 Sep 2020 00:40:47 -0500 Subject: [PATCH] test: Adjust case p9-vec-length-full-6.c [PR97075] 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 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-6.c b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-6.c index cfae9bbc927..5d2357aabfa 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-6.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-6.c @@ -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 } } */ -- 2.30.2