]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
commit784deda0da6062edc0ace62fd7cf1abbcf2fb054
treee9a94b0020b4689a6fd9ca48131fd1f113aeb703
parent34d4168eb72d8e74387ad4b2fdf7d2417af561e9
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.
gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c