From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D76B33858C20; Mon, 9 Jan 2023 16:41:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D76B33858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673282465; bh=NBkZM87eiBdimajk2egTEanCzWfaFnyi/y/zqzzaEmA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YuH/p70Q8Ibs/SpyWqpjUI8I8OE+m6z2K5z209CoMtaR0unih4fcaVryjy5ksHD93 Gtt7mtOh1cTHvVQ45lIEXDEDJ3mkWfE6xPCuMs56YyvgU3MAzzCReSo+aBGOydehz+ 34pikCajqdONZiOsO0YryCrBmBtJLvP04tzZHiS8= From: "roger at nextmovesoftware dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107991] [10/11/12/13 Regression] Extra mov instructions with ternary on x86 Date: Mon, 09 Jan 2023 16:41:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: missed-optimization, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: roger at nextmovesoftware dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D107991 Roger Sayle changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roger at nextmovesoftware = dot com --- Comment #6 from Roger Sayle --- An x86 peephole2 to workaround the problem was proposed here: https://gcc.gnu.org/pipermail/gcc-patches/2023-January/609578.html but improved register allocation (if possible) would be a better solution: https://gcc.gnu.org/pipermail/gcc-patches/2023-January/609588.html=