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

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

https://gcc.gnu.org/g:7d8907054af9d767226d3cb40d6c58c73a47d0a2

commit r15-10753-g7d8907054af9d767226d3cb40d6c58c73a47d0a2
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