[Bug target/118561] ICE calling __builtin_lasx_xvpickve2gr_w with lasx disabled

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 6 11:03:41 GMT 2025


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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by LuluCheng <chenglulu@gcc.gnu.org>:

https://gcc.gnu.org/g:50d2bde68a097c2e9fb3bdd7e6664c8988889828

commit r15-7386-g50d2bde68a097c2e9fb3bdd7e6664c8988889828
Author: Lulu Cheng <chenglulu@loongson.cn>
Date:   Wed Jan 22 17:57:21 2025 +0800

    LoongArch: Fix ICE caused by illegal calls to builtin functions [PR118561].

            PR target/118561

    gcc/ChangeLog:

            * config/loongarch/loongarch-builtins.cc
            (loongarch_expand_builtin_lsx_test_branch):
            NULL_RTX will not be returned when an error is detected.
            (loongarch_expand_builtin): Likewise.

    gcc/testsuite/ChangeLog:

            * gcc.target/loongarch/pr118561.c: New test.


More information about the Gcc-bugs mailing list