]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V Regression test: Fix FAIL of fast-math-slp-38.c for RVV
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Mon, 9 Oct 2023 12:24:51 +0000 (20:24 +0800)
committerPan Li <pan2.li@intel.com>
Mon, 9 Oct 2023 12:52:16 +0000 (20:52 +0800)
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.

gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c

index 7c7acd5bab69868a61a7fbbb38c1d7e3f3c3e3be..96751faae7fa80799b44db3907982b64a46a140e 100644 (file)
@@ -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 } } } } */