On Wed, 30 Aug 2023, Juzhe-Zhong wrote: > Fix FAILs: > FAIL: gcc.dg/vect/slp-26.c -flto -ffat-lto-objects scan-tree-dump-times vect > "vectorized 0 loops" 1 > FAIL: gcc.dg/vect/slp-26.c -flto -ffat-lto-objects scan-tree-dump-times vect > "vectorizing stmts using SLP" 0 > FAIL: gcc.dg/vect/slp-26.c scan-tree-dump-times vect "vectorized 0 loops" 1 > FAIL: gcc.dg/vect/slp-26.c scan-tree-dump-times vect "vectorizing stmts using > SLP" 0 > > Since RVV is able to vectorize it with VLS modes like amdgcn.
OK > gcc/testsuite/ChangeLog: > > * gcc.dg/vect/slp-26.c: Adapt for RVV. > > --- > gcc/testsuite/gcc.dg/vect/slp-26.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/gcc/testsuite/gcc.dg/vect/slp-26.c > b/gcc/testsuite/gcc.dg/vect/slp-26.c > index d398a5acb0c..196981d83c1 100644 > --- a/gcc/testsuite/gcc.dg/vect/slp-26.c > +++ b/gcc/testsuite/gcc.dg/vect/slp-26.c > @@ -47,7 +47,7 @@ int main (void) > return 0; > } > > -/* { dg-final { scan-tree-dump-times "vectorized 0 loops" 1 "vect" { target > { ! { mips_msa || amdgcn-*-* } } } } } */ > -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target > { mips_msa || amdgcn-*-* } } } } */ > -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" > { target { ! { mips_msa || amdgcn-*-* } } } } } */ > -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" > { target { mips_msa || amdgcn-*-* } } } } */ > +/* { dg-final { scan-tree-dump-times "vectorized 0 loops" 1 "vect" { target > { ! { mips_msa || { amdgcn-*-* || riscv_vector } } } } } } */ > +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target > { mips_msa || { amdgcn-*-* || riscv_vector } } } } } */ > +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" > { target { ! { mips_msa || { amdgcn-*-* || riscv_vector } } } } } } */ > +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" > { target { mips_msa || { amdgcn-*-* || riscv_vector } } } } } */ > -- Richard Biener <rguent...@suse.de> SUSE Software Solutions Germany GmbH, Frankenstrasse 146, 90461 Nuernberg, Germany; GF: Ivo Totev, Andrew McDonald, Werner Knoblich; (HRB 36809, AG Nuernberg)