diff options
author | Juzhe-Zhong <juzhe.zhong@rivai.ai> | 2023-11-09 10:39:17 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2023-11-09 11:31:36 +0800 |
commit | 5b6f4e6f05d5ef64ecb918db02f5b8149cb2b0a0 (patch) | |
tree | 474326f775fbfea0bec435de478b7474a1d42590 /gcc/tree-vect-loop.cc | |
parent | e39b3e02c27bd771a07e385f9672ecf1a45ced77 (diff) | |
download | gcc-5b6f4e6f05d5ef64ecb918db02f5b8149cb2b0a0.zip gcc-5b6f4e6f05d5ef64ecb918db02f5b8149cb2b0a0.tar.gz gcc-5b6f4e6f05d5ef64ecb918db02f5b8149cb2b0a0.tar.bz2 |
RISC-V: Fix dynamic LMUL cost model ICE
When trying to use dynamic LMUL to compile benchmark.
Notice there is a bunch ICEs.
This patch fixes those ICEs and append tests.
gcc/ChangeLog:
* config/riscv/riscv-vector-costs.cc (costs::preferred_new_lmul_p): Fix ICE.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-1.c: New test.
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-2.c: New test.
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-3.c: New test.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions