public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V Regression test: Fix FAIL of fast-math-slp-38.c for RVV
@ 2023-10-12 21:58 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-10-12 21:58 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:196e8948d0eebcdcb62d2d746d4eba8e813fa233
commit 196e8948d0eebcdcb62d2d746d4eba8e813fa233
Author: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Date: Mon Oct 9 20:24:51 2023 +0800
RISC-V Regression test: Fix FAIL of fast-math-slp-38.c for RVV
Reference: https://godbolt.org/z/G9jzf5Grh
RVV is able to vectorize this case using SLP. However, with -fno-vect-cost-model,
RVV vectorize it by vec_load_lanes with stride 6.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/fast-math-slp-38.c: Add ! vect_strided6.
(cherry picked from commit 784deda0da6062edc0ace62fd7cf1abbcf2fb054)
Diff:
---
gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c b/gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c
index 7c7acd5bab6..96751faae7f 100644
--- a/gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c
+++ b/gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c
@@ -18,4 +18,4 @@ foo (void)
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "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_strided6 } } } } */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-12 21:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-12 21:58 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V Regression test: Fix FAIL of fast-math-slp-38.c for RVV Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).