https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121485

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Jeff Law <[email protected]>:

https://gcc.gnu.org/g:a75d15db70bf5f37cdbfa7e5fc61adb35c702bd6

commit r15-10646-ga75d15db70bf5f37cdbfa7e5fc61adb35c702bd6
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.

Reply via email to