From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 14A38385332C; Sat, 8 Jun 2024 12:37:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 14A38385332C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717850273; bh=p5HyTc+wboh+eaQcRgSvXZQbkNeKx70nM5DJhy9mcwM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lxTdZB8g1OdlfgGqHL2GQlkekIBrucWo/jVHH8/Pb1Xkctb/3m443pBHuZRVdePnv NJfxhrz8nMRbeQlemDo8Jf7oY56K86uVriOHwaLVmrl2/O1tzuU2pFSJ8hiFSB+2ek Q3gHhulog3d2j1WYMowKCBHejjkXtdEewa37ol9I= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115395] [15 regression] libarchive miscompiled with -O2 -march=znver2 -fno-vect-cost-model Date: Sat, 08 Jun 2024 12:37:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: wrong-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: 15.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115395 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2024-06-08 Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski --- Confirmed. Looks like it is doing the add twice: ``` vect_offset_14.29_104 =3D _84 + vect__18.28_103; _106 =3D .REDUC_PLUS (vect_offset_14.29_104); _107 =3D offset_9 + _106; ``` Once before the reduction and once after.=