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

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

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

commit r15-11046-gc57334876504a1b98dd2b3ef5b45e4619a64daa4
Author: Robin Dapp <[email protected]>
Date:   Tue Mar 24 10:58:14 2026 +0100

    RISC-V: Allow all vector modes during builtin registration. [PR124613]

    In r16-7312-gecc37444062b40 we allowed all vector modes for the
    any_target hook.  Since then we would ICE in gcc.target/riscv/pr122051.c
    as emit_move_multi_word would choose a fractional vector mode.

    This patch disallows fractional vector modes for xtheadvector in
    riscv_vector_mode_supported_p but makes an exception for builtin
    registration (through a global variable).  During registration we
    need to have all modes available in order to maintain the registration
    order for LTO streaming.

            PR target/124613

    gcc/ChangeLog:

            * config/riscv/riscv-vector-builtins.cc
(rvv_switcher::rvv_switcher):
            Add riscv_registering_builtins.
            (rvv_switcher::~rvv_switcher): Set riscv_registering_builtins to
            false.
            * config/riscv/riscv.cc (riscv_vector_mode_supported_p): Use
            riscv_registering_builtins.
            * config/riscv/riscv.h: Declare.

    (cherry picked from commit a4f2cc9fb772b31869b6227ff566882764fe8af6)
  • [Bug target/124613] [16 regress... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to