https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121485
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <[email protected]>: https://gcc.gnu.org/g:5d3874416c5eb09d2de3d9bfa1f22f537c3384e2 commit r16-6447-g5d3874416c5eb09d2de3d9bfa1f22f537c3384e2 Author: Jeff Law <[email protected]> Date: Tue Dec 30 22:52:03 2025 -0700 [RISC-V][PR target/121485] Fix mode on Zvkned lmul extending patterns This fixes the mode on the lmul-extending variants of various Zvkned patterns. Essentially vsetvl insertion depends on the mode of each insn and for lmul extending patterns, we need the larger mode, not the smaller one to get the correct vsetvls. Tested on riscv{32,64}-elf on the simple testcase in the PR. I also verified the larger testcase in godbolt appears to work correctly. Waiting on upstream CI before committing. PR target/121485 gcc/ * config/riscv/vector-crypto.md: Fix mode attribute for the lmul extending Zvkned patterns. gcc/testsuite/ * gcc.target/riscv/rvv/vsetvl/pr121485.c: New test.
