]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add assert for insn operand out of range access [PR117878][NFC]
authorPan Li <pan2.li@intel.com>
Wed, 4 Dec 2024 05:53:52 +0000 (13:53 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Wed, 9 Apr 2025 14:03:08 +0000 (22:03 +0800)
commitacb636a9c3ac18e7234e37c99bd6e9200b80b9bd
treebddf40a53588db82c992b18d364d3faad5046220
parentca6adeda373fc97ff57a79bc1a078f90776330cd
RISC-V: Add assert for insn operand out of range access [PR117878][NFC]

According to the the initial analysis of PR117878, the ice comes from
the out-of-range operand access for recog_data.operand[].  Thus, add
one assert here to expose this explicitly.

PR target/117878

gcc/ChangeLog:

* config/riscv/riscv-v.cc (vlmax_avl_type_p): Add assert for
out of range access.
(nonvlmax_avl_type_p): Ditto.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/config/riscv/riscv-v.cc