]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Do not use vsetivli for THeadVector.
authorRobin Dapp <rdapp@ventanamicro.com>
Tue, 8 Jul 2025 09:35:12 +0000 (11:35 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Tue, 8 Jul 2025 13:42:27 +0000 (15:42 +0200)
commitdab5951af891c58aa4dd60755edb49df882b680a
treedc3be081b82aaeffd7d38c36b690acb62c0856db
parent6968656d631c6666081889f30c2247bf255e0831
RISC-V: Do not use vsetivli for THeadVector.

In emit_vlmax_insn_lra we use a vsetivli for an immediate AVL.
XTHeadVector does not support this, so guard appropriately.

PR target/120461

gcc/ChangeLog:

* config/riscv/riscv-v.cc (emit_vlmax_insn_lra): Do not emit
vsetivli for XTHeadVector.

gcc/testsuite/ChangeLog:

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