From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B221B3858D32; Mon, 27 Feb 2023 10:47:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B221B3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677494871; bh=ekuGoNg2tNia5LLSWbSttWNtCQbjgBC6EldKsuHX12I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Avu05u1aCxBKxHspnvhB9AhBW+jgOGz9jQ4R1vlZaap6lcpiUH+7dZAIDSlBVofc7 BKU6/rNgsBxW3ux8KjYR7xI/2jZhDxk5C+mpZfsAbjUunUDxif/PsSwpsvg1swUD2A 7WYdILPfPCKJsw26HTvvB01zADG++bF5quyCx0to= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108922] fmod() 13x slowdown in gcc4.9 dropping "fprem" and calling fmod() Date: Mon, 27 Feb 2023 10:47:51 +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: 12.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 13.0 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=3D108922 --- Comment #29 from Jakub Jelinek --- Note, fmod_optab is only used on i?86 (where because of the commit mentioned here it was limited to finite math only) and rs6000 (which guards it on uns= afe math optimizations), so both in the fast-math related area only. Therefore it might be very well possible it got broken because of those cha= nges without anyone noticing. Most of the builtins for which ranges are tested = are single operand and pow which has 2 has special handling...=