From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E24F13836E86; Thu, 27 Jun 2024 08:32:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E24F13836E86 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1719477132; bh=cj+SMLph3BkXmNRB0wGsq7+Pz4J8z9t4PfDSngdoWIE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GdIdkBTTxGXdsUIrs0DWN/4xa961/Utp/S2CCgXYZELBMa744ewiHgsrlFTF4DGfH 3MKACBQVxAfcJWtY6p4+sj5U9lPti1vYu0joXyVZym2IarYSoUn4C3CxEf7U6jYQgP qpFuknZR8KUNF2XhWJVc3guUwXCHXm9qYCAV8Mak= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115669] [15 Regression] rv64gcv/aarch64+sve -fwrapv miscompile since r15-1006-gd93353e6423 Date: Thu, 27 Jun 2024 08:32:12 +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: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 15.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=3D115669 --- Comment #6 from Richard Biener --- OK, so the issue is the SLP child order is different than the scalar stmt operand order and inconsistent with what we have recorded in reduc_idx. Likely because we do t.c:6:23: note: pre-sorted chains of plus_expr plus_expr -1 plus_expr b.2_7 minus_expr _5=20 and that requires -fwrapv. I think this is a latent issue possibly trigger= able with a masked SLP reduction.=