RISC-V Regression tests: Fix FAIL of pr97832* for RVV
Checks
Commit Message
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.
---
gcc/testsuite/gcc.dg/vect/pr97832-2.c | 4 ++--
gcc/testsuite/gcc.dg/vect/pr97832-3.c | 4 ++--
gcc/testsuite/gcc.dg/vect/pr97832-4.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
Comments
On 10/9/23 07:15, Juzhe-Zhong wrote:
> 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.
OK. Same question as last 3 acks.
jeff
Committed, thanks Jeff.
Pan
-----Original Message-----
From: Jeff Law <jeffreyalaw@gmail.com>
Sent: Monday, October 9, 2023 9:53 PM
To: Juzhe-Zhong <juzhe.zhong@rivai.ai>; gcc-patches@gcc.gnu.org
Cc: rguenther@suse.de
Subject: Re: [PATCH] RISC-V Regression tests: Fix FAIL of pr97832* for RVV
On 10/9/23 07:15, Juzhe-Zhong wrote:
> 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.
OK. Same question as last 3 acks.
jeff
@@ -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 } } } } } */
@@ -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 } } } } } */
@@ -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 } } } } } */