https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113819
Bug ID: 113819 Summary: ICE: RTL check: expected elt 3 type 'e' or 'u', have '0' (rtx code_label) in PATTERN, at rtl.h:1511 with -mstringop-strategy=loop and asm goto with impossible constraint and _BitInt() Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 57353 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57353&action=edit reduced testcase (from gcc.dg/torture/pr100398.c) This might need RTL checking enabled. Compiler output: $ x86_64-pc-linux-gnu-gcc -mstringop-strategy=loop testcase.c during RTL pass: expand testcase.c: In function 'test5_limit': testcase.c:4:3: internal compiler error: RTL check: expected elt 3 type 'e' or 'u', have '0' (rtx code_label) in PATTERN, at rtl.h:1511 4 | __asm__ goto("" : "=r"(addr) : : : t_err); | ^~~~~~~ 0x8072bd rtl_check_failed_type2(rtx_def const*, int, int, int, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl.cc:761 0x72a1a4 PATTERN(rtx_def*) /repo/gcc-trunk/gcc/rtl.h:1511 0x72cd2d PATTERN(rtx_def*) /repo/gcc-trunk/gcc/rtl.h:1479 0x72cd2d expand_asm_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:3681 0xf845a9 expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.cc:3923 0xf845a9 expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:4071 0xf8b3be expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.cc:6127 0xf8d097 execute /repo/gcc-trunk/gcc/cfgexpand.cc:6866 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. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-8869-20240207154951-g8636c538b68-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r14-8869-20240207154951-g8636c538b68-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240207 (experimental) (GCC)