From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C4EA43858C62; Tue, 14 Feb 2023 17:01:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4EA43858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676394060; bh=O5i3EaX5QxJ/K4tnAUADBZrysuzwOPTsgLvrShqB49g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gzCEtFFHB7tk/lmx9w4tAqH+vhtube8nqdjvrf0c1S/NWydv014H8yJbsrj7E3g9i K2R8JbnlmUI352Oht/JKZYCjwf0C3AO5Ak7aQKnejIa5hTt8Ct/H4fnE+75XwWBVIV 6ikZ0MvKKbrRt/36qiWB6gJHApaRaHU0jL9UaVP0= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108787] [13 Regression] libsodium miscompilation on power9 starting with r13-2107 Date: Tue, 14 Feb 2023 17:00:59 +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: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D108787 --- Comment #2 from Jakub Jelinek --- In *.optimized dump it looks correct: d_16 =3D h2_14(D) w* s1_15(D); _19 =3D WIDEN_MULT_PLUS_EXPR ; d0_17 =3D WIDEN_MULT_PLUS_EXPR ; where WIDEN_MULT_EXPR has 2 64-bit unsigned operands and 128-bit result, and the 2 WIDEN_MULT_PLUS_EXPR which as documented have 2 64-bit unsigned opera= nds and 128-bit result as well as last argument. But the actual rs6000.md implementation looks broken in several ways.=