From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1CC583858402; Tue, 26 Oct 2021 07:12:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1CC583858402 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/102941] ICE in extract_insn with ccflags output from inline-asm and var with address taken Date: Tue, 26 Oct 2021 07:12:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code, inline-asm X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcchost cf_gcctarget 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2021 07:12:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102941 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Host|x86_64-linux-gnu | Target|aarch64-linux-gnu |aarch64-*-* arm*-*-* --- Comment #4 from Andrew Pinski --- The fix: diff --git a/gcc/config/arm/aarch-common.c b/gcc/config/arm/aarch-common.c index 67343fe4025..60b3516c1df 100644 --- a/gcc/config/arm/aarch-common.c +++ b/gcc/config/arm/aarch-common.c @@ -641,7 +641,7 @@ arm_md_asm_adjust (vec &outputs, vec & /*inputs*/, rtx x =3D gen_rtx_REG (mode, CC_REGNUM); x =3D gen_rtx_fmt_ee (code, word_mode, x, const0_rtx); - if (dest_mode =3D=3D word_mode) + if (dest_mode =3D=3D word_mode && REG_P (dest)) emit_insn (gen_rtx_SET (dest, x)); else { This means you could also run into this on arm-linux-gnueabi too.=