]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix ICE in get_avl_or_vl_reg
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Thu, 14 Sep 2023 07:52:13 +0000 (15:52 +0800)
committerPan Li <pan2.li@intel.com>
Thu, 14 Sep 2023 07:57:29 +0000 (15:57 +0800)
commit53ad1bd520759580b9a5cc590a81a1a30b9e2e28
tree67f81f0f80bafb3f7a1eadc3fb04d0a2addc7e39
parent7c4f6ebe54f4da0097acd07f41782ff6cc39e9a4
RISC-V: Fix ICE in get_avl_or_vl_reg

update v1 -> v2: Add available fortran compiler check in rvv-fortran.exp.

This patch fix https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111395 ICE

update v2 -> v3: Remove redundant format.

PR target/111395

gcc/ChangeLog:

* config/riscv/riscv-vsetvl.cc (avl_info::operator==): Fix ICE.
(vector_insn_info::global_merge): Ditto.
(vector_insn_info::get_avl_or_vl_reg): Ditto.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/fortran/pr111395.f90: New test.
* gcc.target/riscv/rvv/rvv-fortran.exp: New test.
gcc/config/riscv/riscv-vsetvl.cc
gcc/testsuite/gcc.target/riscv/rvv/fortran/pr111395.f90 [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/rvv/rvv-fortran.exp [new file with mode: 0644]