From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5CE9F3858424; Sat, 2 Mar 2024 04:40:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5CE9F3858424 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709354432; bh=4lOCM/GdQ1un0V3zzKnpapsOTrmMgUpvUx9CYbeXDrc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iv6eo4IWBHLcjcBh4ShRMK4/ADy49TpANCf6Xo2MhACtNOAYb+6fNGhYlrV1leA6F sg6MvDkm2rw8DzGNvBDIqE9YvIzh5VxXE+iMY5gUfSQmaU8pjDe8ZwsDQpE4dWNWbe 9ln3ohC/e67v3TC6DnzYT9Y43Rhq9063YiKdZpG0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114203] [13/14 Regression] Miscompilation: A possible miscompilation in GCC 13 and 14 with option -Os Date: Sat, 02 Mar 2024 04:40:32 +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: 14.0 X-Bugzilla-Keywords: needs-bisection, 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: 13.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component cf_reconfirmed_on cc everconfirmed target_milestone keywords short_desc 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=3D114203 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |tree-optimization Last reconfirmed| |2024-03-02 CC| |pinskia at gcc dot gnu.org Ever confirmed|0 |1 Target Milestone|--- |13.3 Keywords| |needs-bisection, wrong-code Summary|Miscompilation: A possible |[13/14 Regression] |miscompilation in GCC 13 |Miscompilation: A possible |and 14 with option -Os |miscompilation in GCC 13 | |and 14 with option -Os Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski --- final value replacement: c_7 =3D PHI with expr: b_3(D) !=3D 0 ? 32 - __builtin_clz ((unsigned int) b_3(D)) : 24 24 is definitely wrong here. It should have been 0.=