From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E2FC13858C62; Thu, 8 Jun 2023 13:32:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2FC13858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686231173; bh=5G17/yzeYIyWkTIQmLBA2BwBOBQk0Xh49j0O334m5xA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KHrTSQwg/E8+wambTq6X18T/JwonLcK8wWYlr8C2eajyXMIE6muKTC7uAwak4W0q1 BCy9KomXDtCqqHO/r1PMqddD1G9mWvU4Mvr3OLN5wTcGhE0hJgiTR4HZbTgyogqBq8 vxKHcnGJ6TnTREnRe22CCeL/41E8Oy5p/RFqbchw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110170] Sub-optimal conditional jumps in conditional-swap with floating point Date: Thu, 08 Jun 2023 13:32:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D110170 --- Comment #3 from Andrew Pinski --- So for arm, GCC does produce the code you want: ``` vcmpe.f64 d17, d16 vmrs APSR_nzcv, FPSCR ite pl vmovpl.f64 d18, d17 vmovmi.f64 d18, d16 it mi vmovmi.f64 d16, d17 ``` RTL CE1 (ifcvt) detects it: if-conversion succeeded through noce_convert_multiple_sets So maybe there is some cost issue. Because arm64 does not do it either.=