]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add TAREGT_VECTOR check into VLS modes
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Sat, 12 Aug 2023 02:30:02 +0000 (10:30 +0800)
committerPan Li <pan2.li@intel.com>
Sat, 12 Aug 2023 04:42:28 +0000 (12:42 +0800)
commit9890f377013cf1e4f5b9fab8a7287a5380dade1f
treee077a1bf194a55b42215dc2fcbf43680fa3aa0f1
parent8be20733b38c200f375cacf698d6b85e76055bcd
RISC-V: Add TAREGT_VECTOR check into VLS modes

This patch fixes bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110994

This is caused VLS modes incorrect codes int register allocation.

The original case trigger the ICE is fortran code but I can reproduce
with a C code.

gcc/ChangeLog:

PR target/110994
* config/riscv/riscv-opts.h (TARGET_VECTOR_VLS): Add TARGET_VETOR.

gcc/testsuite/ChangeLog:

PR target/110994
* gcc.target/riscv/rvv/autovec/vls/pr110994.c: New test.
gcc/config/riscv/riscv-opts.h
gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/pr110994.c [new file with mode: 0644]