From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 23B4D3858C98; Sun, 24 Dec 2023 23:16:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23B4D3858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703459816; bh=fXq1hcgSUSo8H4GCjvc+BH/AXN3ciLN9uRdiu55MZ+U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HPdZ8G09FIXmpvg4fa4SkoRwif3a/n8HYbnMhq35SNDyWKszdcJrxpmbbOhhhEa9f q3INHJAMqTT9tacmS7yStEoIU5pxHitDzL4lyPI8brJdcJI6Y77CqEnvYCSTiu0/KY xC2xTZhMx1aTX1dFs086XLgBySFQ8IyjFA33UPGI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/99930] Failure to optimize floating point -abs(x) in nontrivial code at -O2/3 Date: Sun, 24 Dec 2023 23:16:54 +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 X-Bugzilla-Severity: enhancement 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component 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=3D99930 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Component|rtl-optimization |middle-end --- Comment #11 from Andrew Pinski --- This is worse in GCC 13 because ` _5 =3D .COPYSIGN (_4, -1.0e+0);` is not expanded as `_4 | 0x8000000` ...=