From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8C9EB385416C; Fri, 14 Oct 2022 10:47:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C9EB385416C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665744450; bh=Fcl9zhbjHG7HQ3kN5OrcZKJ9x9ofM1DTtt5d2chXnhw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IJOqcrLYhs6dDD1K3rHfDwnjYm6ZQjLFfZIfKtHarXQY70K4q8wZ+yB3hC10pm1Ub 81be+GJouXxPZQimuJ/Y/ZV7KzpnxQ+fih3DUklJoJNS9HJCap9hCMtrrd5g4KEVcj M4prLAYi5GpaWXCnwmpim6jkknKOGz9ZLubhG/gU= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106112] [10 Regression] wrong code at -Os and above on x86_64-linux-gnu since r10-2711-g3ed01d5408045d80 Date: Fri, 14 Oct 2022 10:47:29 +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: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 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=3D106112 --- Comment #8 from CVS Commits --- The releases/gcc-10 branch has been updated by Richard Biener : https://gcc.gnu.org/g:983d87530d8efbae6b5f4973c52edd1071d26add commit r10-11035-g983d87530d8efbae6b5f4973c52edd1071d26add Author: Richard Biener Date: Tue Jun 28 13:57:29 2022 +0200 tree-optimization/106112 - fix CSE from wider operation The following fixes a mistake in looking up an extended operand in the CSE of a truncated operation. 2022-06-28 Richard Biener PR tree-optimization/106112 * tree-ssa-sccvn.c (valueized_wider_op): Properly extend a constant operand according to its type. * gcc.dg/torture/pr106112.c: New testcase. (cherry picked from commit 2dbb45d6dc0d20dc159b3d8e27ebb6825074827a)=