From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B88F73858C74; Thu, 13 Jul 2023 21:12:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B88F73858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689282742; bh=/TK25xw/+OWspkLL3xCotujhGqy9U3Ax7gW8pHWQKfw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Q52R5TWBXvfblAEXyj24239o2hQOTF3io9fKkznlHeMcWNG4L91wtlmp1PtNal9XI eCu+PtEC88AKLXyUO9P1D9QGwWUDZtYL5OuAFEhmzH7fpOjNYzwcAGYpUDB1CHEtCE FAdNs2QfAyxfC3LmUSlKYvf7C4IbfUNV21HGFTn0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/97968] [11/12/13/14 Regression] Unnecessary mov instruction with comparison and cmov Date: Thu, 13 Jul 2023 21:12:22 +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: 11.0 X-Bugzilla-Keywords: missed-optimization, needs-bisection, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cf_known_to_work 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=3D97968 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-bisection Known to work| |13.1.0 --- Comment #7 from Andrew Pinski --- In GCC 13+ we produce: f: xorl %eax, %eax cmpl %esi, %edi cmovg %edi, %eax ret=