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

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

https://gcc.gnu.org/g:4df77a254263e96af1ab4d1288a35cff10c515a4

commit r16-7163-g4df77a254263e96af1ab4d1288a35cff10c515a4
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.

Reply via email to