From: Juzhe-Zhong Date: Mon, 9 Oct 2023 13:15:30 +0000 (+0800) Subject: RISC-V Regression tests: Fix FAIL of pr97832* for RVV X-Git-Tag: basepoints/gcc-15~5622 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e90eddde570b5082a61369b07894971566536d6e;p=thirdparty%2Fgcc.git RISC-V Regression tests: Fix FAIL of pr97832* for RVV These cases are vectorized by vec_load_lanes with strided = 8 instead of SLP with -fno-vect-cost-model. gcc/testsuite/ChangeLog: * gcc.dg/vect/pr97832-2.c: Adapt dump check for target supports load_lanes with stride = 8. * gcc.dg/vect/pr97832-3.c: Ditto. * gcc.dg/vect/pr97832-4.c: Ditto. --- diff --git a/gcc/testsuite/gcc.dg/vect/pr97832-2.c b/gcc/testsuite/gcc.dg/vect/pr97832-2.c index 4f0578120eec..7d8d26914327 100644 --- a/gcc/testsuite/gcc.dg/vect/pr97832-2.c +++ b/gcc/testsuite/gcc.dg/vect/pr97832-2.c @@ -25,5 +25,5 @@ void foo1x1(double* restrict y, const double* restrict x, int clen) } } -/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */ -/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */ +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */ +/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/pr97832-3.c b/gcc/testsuite/gcc.dg/vect/pr97832-3.c index ad1225ddbaae..c0603e1432e9 100644 --- a/gcc/testsuite/gcc.dg/vect/pr97832-3.c +++ b/gcc/testsuite/gcc.dg/vect/pr97832-3.c @@ -46,5 +46,5 @@ void foo(double* restrict y, const double* restrict x0, const double* restrict x } } -/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */ -/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */ +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */ +/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/pr97832-4.c b/gcc/testsuite/gcc.dg/vect/pr97832-4.c index 74ae27ff873a..c03442816a46 100644 --- a/gcc/testsuite/gcc.dg/vect/pr97832-4.c +++ b/gcc/testsuite/gcc.dg/vect/pr97832-4.c @@ -24,5 +24,5 @@ void foo1x1(double* restrict y, const double* restrict x, int clen) } } -/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */ -/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */ +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */ +/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */