On 7/8/25 6:21 AM, Robin Dapp wrote:
Hi,

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

Regtested on rv64gcv_zvl512b.

Regards
Robin

     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.
OK. This has certain similarities to the one I looked at yesterday. In the case I looked at we did a constant AVL propagation on theadvector, We correctly caught that the insn wasn't recognizable in that form, but the code in question ICE'd on the belief that the AVL propagation was always safe.

Jeff

Reply via email to