From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DCDD63858D1E; Tue, 16 Jan 2024 06:07:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DCDD63858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705385255; bh=di/Av46oFGVYPZu73fZk8TF6a8BYbkX4VYMtkkUIr8Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=R7SPcQVq2k30HdFqjyFZap27oZyPZucm3T4psSJfSIpagvdAmE6VVsZcxXvOx+LIE cYrxioUrHlpZjTxrDkCz1yg014zq8cL4jux4w+dPmNdtO8arWLDpTpxP6eUVFF/QKm W2AnvLi7hR2PNJYaXzGesbUI1MTFQpPc6TwfSadQ= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113415] ICE: RTL check: -mstringop-strategy=byte_loop vs inline-asm goto with block copies Date: Tue, 16 Jan 2024 06:07:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-checking, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: short_desc bug_status everconfirmed cf_reconfirmed_on Message-ID: In-Reply-To: References: 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 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ICE: RTL check: expected |ICE: RTL check: |elt 3 type 'e' or 'u', have |-mstringop-strategy=3Dbyte= _lo |'0' (rtx code_label) in |op vs inline-asm goto with |PATTERN, at rtl.h:1511 with |block copies |-mstringop-strategy=3Dbyte_lo | |op and invalid __asm__ on | |_BitInt() | Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2024-01-16 --- Comment #2 from Andrew Pinski --- This code will not work with anything more fancy than insns, it does not support code_labels. ``` for (rtx_insn *curr =3D after_rtl_seq; curr !=3D NULL_RTX; curr =3D NEXT_INSN (curr)) emit_insn (copy_insn (PATTERN (curr))); rtx_insn *copy =3D get_insns (); end_sequence (); ```=