From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 31F0A3858D20; Tue, 16 Jan 2024 05:46:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31F0A3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705383969; bh=CCMwSjjT1ORwvAAFLb0UCTBInHdQSeRpHXWvDsJBuQk=; h=From:To:Subject:Date:From; b=ug9tXsIIvqIKgTYQr2dcENSlRvAlZ9Xnicr33d6F0SKV/kVe1BThBv56uoG6hvfij loUVYJ3XQ7w71yCiDIiCoSmOgqxjrjSMZtUxhhowNiDUvbQQJ4txsYRJAb/jM8s80d TgcDazsK/hE9D8uI7y+DX2zsO/KPEn3KeRnk2bso= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/113415] New: ICE: RTL check: expected elt 3 type 'e' or 'u', have '0' (rtx code_label) in PATTERN, at rtl.h:1511 with -mstringop-strategy=byte_loop and invalid __asm__ on _BitInt() Date: Tue, 16 Jan 2024 05:46:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113415 Bug ID: 113415 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=3Dbyte_loop and invalid __asm__ on _BitInt() Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: rtl-optimization 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 57097 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57097&action=3Dedit reduced testcase This probably needs RTL checking enabled. The asm constraints are invalid; = ICEs before the diagnostics. Compiler output: $ x86_64-pc-linux-gnu-gcc -mstringop-strategy=3Dbyte_loop testcase.c during RTL pass: expand testcase.c: In function 'foo': testcase.c:6:3: internal compiler error: RTL check: expected elt 3 type 'e'= or 'u', have '0' (rtx code_label) in PATTERN, at rtl.h:1511 6 | __asm__ goto("" : "=3Dr"(x) : : : lab); | ^~~~~~~ 0x800c3a rtl_check_failed_type2(rtx_def const*, int, int, int, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl.cc:761 0x724644 PATTERN(rtx_def*) /repo/gcc-trunk/gcc/rtl.h:1511 0x726bf6 PATTERN(rtx_def*) /repo/gcc-trunk/gcc/rtl.h:1479 0x726bf6 expand_asm_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:3655 0xf88909 expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.cc:3897 0xf88909 expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:4064 0xf8a007 expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.cc:6120 0xf8c66e execute /repo/gcc-trunk/gcc/cfgexpand.cc:6855 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r14-7258-20240115151353-= g731444b3c39-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-l= inux-gnu/14.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-7258-20240115151353-g731444b3c= 39-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240115 (experimental) (GCC)=