https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88331
--- Comment #9 from Uroš Bizjak <ubizjak at gmail dot com> --- Created attachment 45341 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45341&action=edit Somehow reduced testcase The testcase can be compiled with a cross to --target=x86_64-w64-mingw32: cc1 -O3 -march=core-avx2 ttt.c: In function ‘matmul_i4_avx2’: ttt.c:139:1: error: insn outside basic block 139 | } | ^ (insn 998 851 999 (parallel [ (set (reg:DI 764) (plus:DI (reg/f:DI 19 frame) (const_int -224 [0xffffffffffffff20]))) (clobber (reg:CC 17 flags)) ]) 191 {*adddi_1} (nil)) during RTL pass: reload ttt.c:139:1: internal compiler error: in rtl_verify_bb_layout, at cfgrtl.c:2987 0x6635b6 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ../../git/gcc/gcc/rtl-error.c:108 0x8e3621 rtl_verify_bb_layout ../../git/gcc/gcc/cfgrtl.c:2987 0x8e3621 rtl_verify_flow_info ../../git/gcc/gcc/cfgrtl.c:3033 0x8c784d verify_flow_info() ../../git/gcc/gcc/cfghooks.c:263 0x14945c9 checking_verify_flow_info ../../git/gcc/gcc/cfghooks.h:198 0x14945c9 try_optimize_cfg ../../git/gcc/gcc/cfgcleanup.c:2994 0x14945c9 cleanup_cfg(int) ../../git/gcc/gcc/cfgcleanup.c:3159 0xb26ed9 do_reload ../../git/gcc/gcc/ira.c:5524 0xb26ed9 execute ../../git/gcc/gcc/ira.c:5659