]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Fix ICE caused by illegal calls to builtin functions [PR118561].
authorLulu Cheng <chenglulu@loongson.cn>
Wed, 22 Jan 2025 09:57:21 +0000 (17:57 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Thu, 6 Feb 2025 11:03:39 +0000 (19:03 +0800)
commit50d2bde68a097c2e9fb3bdd7e6664c8988889828
treec158d458059817c0fd29c8a7c9864dd78219c4c8
parent7eb260c8a472568912c1e0b83fb402d22977281e
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.
gcc/config/loongarch/loongarch-builtins.cc
gcc/testsuite/gcc.target/loongarch/pr118561.c [new file with mode: 0644]