https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125057
--- Comment #4 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:1bb9817fa87644db91d713808a78d571086d0d78 commit r17-350-g1bb9817fa87644db91d713808a78d571086d0d78 Author: Lulu Cheng <[email protected]> Date: Thu Apr 30 15:56:30 2026 +0800 LoongArch: Fix ICE caused by incomplete split conditions [PR125057]. Since the split conditions in loongarch_split_vector_move are incomplete, the following RTL: (set (reg:V4DI 32 $f0) (subreg:V4DI (reg:V2DI 32 $f0) 0)) is incorrectly split, leading to an ICE. This patch fixes the issue by completing the split conditions. PR target/125057 gcc/ChangeLog: * config/loongarch/loongarch.cc (loongarch_split_vector_move): Complete the split condition. * config/loongarch/loongarch.h (LSX_REG_RTX_P): Delete. (LASX_REG_RTX_P): Delete. (GP_REG_RTX_P): Define macro. gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/pr125057.c: New test. * gcc.target/loongarch/vector/lsx/lsx-mov-2.c: New test.
