https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114861
Bug ID: 114861
Summary: LoongArch: Fail to build the kernel with -Os
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: xry111 at gcc dot gnu.org
Target Milestone: ---
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c: In function ‘gfx_v6_0_hw_init’:
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c:3144:1: error: could not split insn
(insn:TI 1764 67 1745 (set (mem/c:DI (reg/f:DI 3 $r3) [707 %sfp+-80 S8 A64])
(and:DI (reg/v:DI 28 $r28 [orig:422 raster_config ] [422])
(const_int -50331649 [0xfffffffffcffffff])))
"drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c":1386:21 111 {*bstrins_di_for_mask}
(nil))
during RTL pass: final
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c:3144:1: internal compiler error: in
final_scan_insn_1, at final.cc:2807
0x6fdffe _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
../../gcc/gcc/rtl-error.cc:108
0x68dc4b final_scan_insn_1
../../gcc/gcc/final.cc:2807
0xb38398 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
../../gcc/gcc/final.cc:2886
0xb3858f final_1
../../gcc/gcc/final.cc:1977
0xb39096 rest_of_handle_final
../../gcc/gcc/final.cc:4239
0xb39096 execute
../../gcc/gcc/final.cc:4317
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.