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

--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Robin Dapp <[email protected]>:

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

commit r17-7065-gfeecc8d1aa45b9c268a1a21a86437e5a9d8750b8
Author: Robin Dapp <[email protected]>
Date:   Fri Sep 25 21:11:25 2026 +0200

    RISC-V: Set alignment for VLS modes. [PR127597]

    This sets the alignment for VLS modes to their element size instead of
    using the default of their full size.  On top, the patch fixes
    riscv_slow_unaligned_access again... Last time I forgot
    TARGET_VECTOR_MISALIGN_SUPPORTED as well as converting the alignment to
    bits.

            PR target/127597

    gcc/ChangeLog:

            * config/riscv/riscv-modes.def (VLS_ALIGNMENT): Adjust for VLS
            modes.
            (ADJUST_ALIGNMENT): Likewise.
            * config/riscv/riscv.cc (riscv_slow_unaligned_access): Use bit
            alignment.

    gcc/testsuite/ChangeLog:

            * gcc.target/riscv/rvv/base/pr127597-1.c: New test.
            * gcc.target/riscv/rvv/base/pr127597-2.c: New test.
            * gcc.target/riscv/rvv/base/pr127597-3.c: New test.
            * gcc.target/riscv/rvv/base/pr127597-4.c: New test.
            * gcc.target/riscv/rvv/base/pr127597-5.c: New test.
            * gcc.target/riscv/rvv/base/pr127597-6.c: New test.
            * gcc.target/riscv/rvv/base/pr127597-7.c: New test.
            * gcc.target/riscv/rvv/base/pr127597-8.c: New test.

Reply via email to