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

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

https://gcc.gnu.org/g:1402e63eca3baa5271a87b2bdc67096628e7b376

commit r14-12283-g1402e63eca3baa5271a87b2bdc67096628e7b376
Author: Lulu Cheng <[email protected]>
Date:   Mon Jan 26 11:38:59 2026 +0800

    LoongArch: Fix bug123807.

    In the function loongarch_expand_vector_init_same, if same is MEM and
    the mode of same does not match imode, it will cause an ICE
    in force_reg (imode, same).

            PR target/123807

    gcc/ChangeLog:

            * config/loongarch/loongarch.cc
            (loongarch_expand_vector_init_same): When same is MEM and
            GET_MODE(same) != imode, first load the data from memory
            and then process it further.

    gcc/testsuite/ChangeLog:

            * gcc.target/loongarch/vector/lsx/pr123807.c: New test.

    (cherry picked from commit 4df77a254263e96af1ab4d1288a35cff10c515a4)

Reply via email to