https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109140
Bug ID: 109140 Summary: ICE when building qemu (qemu-user, MIPS component) on sparc64-unknown-linux-gnu with -march=niagara4 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: sam at gentoo dot org Target Milestone: --- Host: sparc64-unknown-linux-gnu Target: sparc64-unknown-linux-gnu Build: sparc64-unknown-linux-gnu Hit when building QEMU 7.2.0's qemu-user component for mips on sparc64. This one is reproducible with cross. It needs -O2 -mcpu=niagara4 at least and -O2 -march=ultrasparc is fine. ``` $ sparc64-unknown-linux-gnu-gcc target_mips_tcg_lmmi_helper.c.i -O2 -mcpu=niagara4 -c ../target/mips/tcg/lmmi_helper.c: In function ‘helper_pcmpgtb’: ../target/mips/tcg/lmmi_helper.c:554:1: error: unrecognizable insn: (insn 9 8 10 2 (set (reg:DI 118) (unspec:DI [ (ltu:V8QI (subreg:V8QI (reg/v:DI 115 [ ft ]) 0) (subreg:V8QI (reg/v:DI 114 [ fs ]) 0)) ] UNSPEC_FUCMP)) "../target/mips/tcg/lmmi_helper.c":551:18 -1 (nil)) during RTL pass: vregs ../target/mips/tcg/lmmi_helper.c:554:1: internal compiler error: in extract_insn, at recog.cc:2791 Please submit a full bug report, with preprocessed source (by using -freport-bug). See <https://bugs.gentoo.org/> for instructions. $ sparc64-unknown-linux-gnu-gcc --version sparc64-unknown-linux-gnu-gcc (Gentoo Hardened 12.2.1_p20230304 p13) 12.2.1 20230304 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE ``` Attached the preprocessed source, not yet reduced or bisected, but I'll be doing both later.