From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 31B3A38493DA; Mon, 20 Feb 2023 14:36:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31B3A38493DA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676903766; bh=YScY5kaRbt2OdbapDK3LoUwrhdfJath1AzOZ6CiUegM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jv/ajRvwUyayZGyreImr0/c9DptaKZgUJDvK2rAamacDMJOuc01VxhyXTdvHlKAbj OZu+FijxQrmyCoO7oJ9/SQGtC5lZaChLirBRkFb8dyN4RX5xwIlDlQa3CwCwaYZ9KH /viLWCJZphXWVDCP/7k0dpzLlrs4sWY6iLLMfZb8= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108862] [13 Regression] CryptX miscompilation on power9 since r13-2107 Date: Mon, 20 Feb 2023 14:36:05 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108862 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gn= u.org Status|NEW |ASSIGNED --- Comment #2 from Jakub Jelinek --- The reason is that gen_umaddditi4 is called with the same pseudo as operand= s[0] and operands[3] and so gen_maddlddi4 overwrites its low half before gen_umadddi4_highpart{,_le} uses it. We could create a temporary if some overlap is mentioned, or can create it unconditionally and let later optimizations deal with it.=