RISC-V Regression test: Fix slp-perm-4.c FAIL for RVV
Checks
Commit Message
RVV vectorize it with stride5 load_lanes.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/slp-perm-4.c: Adapt test for stride5 load_lanes.
---
gcc/testsuite/gcc.dg/vect/slp-perm-4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 10/9/23 07:39, Juzhe-Zhong wrote:
> RVV vectorize it with stride5 load_lanes.
>
> gcc/testsuite/ChangeLog:
>
> * gcc.dg/vect/slp-perm-4.c: Adapt test for stride5 load_lanes.
OK.
As a follow-up, would it make sense to test the .vect dump for something
else in the ! {vec_load_lanes && vect_strided5 } case to verify that it
does and continues to be vectorized for that configuration?
jeff
On 10/9/23 08:21, juzhe.zhong wrote:
> Do you mean add a check whether it is vectorized or not?
Yes.
>
> Sounds reasonable, I can add that in another patch.
Sounds good. Thanks.
jeff
Committed, thanks Jeff.
Pan
-----Original Message-----
From: Jeff Law <jeffreyalaw@gmail.com>
Sent: Monday, October 9, 2023 10:28 PM
To: juzhe.zhong <juzhe.zhong@rivai.ai>
Cc: gcc-patches@gcc.gnu.org; rguenther@suse.de
Subject: Re: [PATCH] RISC-V Regression test: Fix slp-perm-4.c FAIL for RVV
On 10/9/23 08:21, juzhe.zhong wrote:
> Do you mean add a check whether it is vectorized or not?
Yes.
>
> Sounds reasonable, I can add that in another patch.
Sounds good. Thanks.
jeff
@@ -115,4 +115,4 @@ int main (int argc, const char* argv[])
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
/* { dg-final { scan-tree-dump-times "gaps requires scalar epilogue loop" 0 "vect" } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { ! { vect_load_lanes && vect_strided5 } } } } } */