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

--- Comment #1 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:6fea108d4725f1aa79ce3acd9b6933da003d11a4

commit r17-4176-g6fea108d4725f1aa79ce3acd9b6933da003d11a4
Author: Robin Dapp <[email protected]>
Date:   Fri Sep 11 16:59:27 2026 +0200

    expmed: Use store_bit_field for unsplittable target. [PR127323]

    In extract_integral_bit_field we can get an unsplittable target like
    (reg:V2DF) and we try to store word-sized parts into it.  After the
    regmode-natural-size changes, this will ICE.  This patch goes through
    store_bit_field if we cannot use a subreg.  For riscv, this will
    currently cause one spill per iteration but that can be mitigated later.

    gcc/ChangeLog:

            PR middle-end/127323

            * expmed.cc (extract_integral_bit_field): Use store_bit_field if
            operand_subword fails.

    gcc/testsuite/ChangeLog:

            * g++.target/riscv/rvv/autovec/pr127323.C: New test.

Reply via email to