]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix ICE of RTL CHECK on VSETVL PASS[PR111947]
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Tue, 24 Oct 2023 02:12:49 +0000 (10:12 +0800)
committerLehua Ding <lehua.ding@rivai.ai>
Tue, 24 Oct 2023 02:25:53 +0000 (10:25 +0800)
commit7b2984ad76cac67b962eeb39eab62b6dacf7845e
treeabcc270b39f8ced330144823cb65bdff801cfae9
parent9cf2e7441eeeb707cc393d6d211184df8f56d456
RISC-V: Fix ICE of RTL CHECK on VSETVL PASS[PR111947]

ICE on vsetvli a5, 8 instruction demand info.

The AVL is const_int 8 which ICE on RENGO caller.

Committed as it is obvious fix.

PR target/111947

gcc/ChangeLog:

* config/riscv/riscv-vsetvl.cc (pre_vsetvl::compute_lcm_local_properties): Add REGNO check.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/vsetvl/pr111947.c: New test.
gcc/config/riscv/riscv-vsetvl.cc
gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr111947.c [new file with mode: 0644]