From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EF0BF3835564; Wed, 14 Dec 2022 07:49:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF0BF3835564 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671004140; bh=t8ykeQSWeG8W6HgBw6mzQTq1hIcIbhEoIGP+Z/rQVrc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uGBXaNaWIaKEU62Tm7AMxgsnUolAPJZr4rPIkOLKdBTiUbW8tnDEyivz+EZNXdeyU 6EQsCT44YwOdvM4/S/aJn1O1BX0mCljmu7zTLpNydfyk5qbMIsQDr2W/mkry4EaMCN Y4ezA6zw40i/McS29SjRIXQESNSwW+0yQbf+CG4A= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107617] SCC-VN with len_store and big endian Date: Wed, 14 Dec 2022 07:48:59 +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: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: 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=3D107617 --- Comment #8 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:d3fee43fb3873b00de913e0501fbf28b56d2ce64 commit r13-4694-gd3fee43fb3873b00de913e0501fbf28b56d2ce64 Author: Richard Biener Date: Mon Nov 28 12:38:46 2022 +0100 tree-optimization/107617 - big-endian .LEN_STORE VN The following fixes a mistake in interpreting .LEN_STORE definitions during value-numbering when in big-endian mode. We cannot offset the encoding of the RHS but instead encode to an offsetted position which is then treated correctly by the endian aware copying code. PR tree-optimization/107617 * tree-ssa-sccvn.cc (vn_walk_cb_data::push_partial_def): Handle negative pd.rhs_off. (vn_reference_lookup_3): Properly provide pd.rhs_off for .LEN_STORE on big-endian targets.=