From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B7EB6385C019; Sat, 21 Mar 2020 14:39:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B7EB6385C019 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584801596; bh=688+v+ZdaNYwq9SqFHTRzOrGu8bsIgZWudK7XcYiR/M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=N8sqEjTzXPKJKsHLhuGsf91kL7BqzF6ADvjaMUHZkrsfGFT3xyZMDb+q2wufGHk7g jHll/0V37Ct/iB4wcdj9qkVp7XE3wQi034t1t20zrOgflMqHFkvXGuYyK97KjQN1hS KCVzvqx7HTnZztnRHu1GOYkC9KLSLFJ4r6oPDK4Y= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94248] [amdgcn] Doesn't build with RTL checking Date: Sat, 21 Mar 2020 14:39:56 +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: unknown X-Bugzilla-Keywords: ice-checking X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: cc everconfirmed cf_reconfirmed_on bug_status 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: Sat, 21 Mar 2020 14:39:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94248 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed| |2020-03-21 Status|UNCONFIRMED |NEW --- Comment #1 from Jakub Jelinek --- Either: --- gcc/config/gcn/gcn.md.jj 2020-03-03 07:57:42.363827602 +0100 +++ gcc/config/gcn/gcn.md 2020-03-21 15:35:22.395639196 +0100 @@ -625,7 +625,7 @@ (define_insn_and_split "*mov_insn" rtx outhi =3D gen_highpart_mode (SImode, mode, operands[0]); /* Ensure that overlapping registers aren't corrupted. */ - if (REGNO (outlo) =3D=3D REGNO (inhi)) + if (REG_P (inhi) && REGNO (outlo) =3D=3D REGNO (inhi)) { operands[0] =3D outhi; operands[1] =3D inhi; or: --- gcc/config/gcn/gcn.md.jj 2020-03-03 07:57:42.363827602 +0100 +++ gcc/config/gcn/gcn.md 2020-03-21 15:37:45.337552515 +0100 @@ -625,7 +625,7 @@ (define_insn_and_split "*mov_insn" rtx outhi =3D gen_highpart_mode (SImode, mode, operands[0]); /* Ensure that overlapping registers aren't corrupted. */ - if (REGNO (outlo) =3D=3D REGNO (inhi)) + if (reg_overlap_mentioned_p (outlo, inhi)) { operands[0] =3D outhi; operands[1] =3D inhi; ought to fix this, but I don't yet have setup where I can sufficiently test= it. I think the latter is better and is in line what other backends are using.=