From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B675E3858429; Fri, 11 Feb 2022 15:47:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B675E3858429 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103008] poor inlined builtin_fmod on x86_64 Date: Fri, 11 Feb 2022 15:47:31 +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: 11.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com 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: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2022 15:47:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103008 --- Comment #13 from Uro=C5=A1 Bizjak --- (In reply to Richard Biener from comment #12) > Just as data-point on znver2 Uros testcase shows >=20 > rguenther@ryzen:/tmp> gcc-11 t.c -Ofast -lm -march=3Dznver2 > rguenther@ryzen:/tmp> numactl --physcpubind=3D3 /usr/bin/time ./a.out=20 > 19.18user 0.00system 0:19.18elapsed 99%CPU (0avgtext+0avgdata > 1528maxresident)k > 0inputs+0outputs (0major+76minor)pagefaults 0swaps > rguenther@ryzen:/tmp> gcc-11 t.c -Ofast -lm -march=3Dznver2 -fno-builtin-= fmod You should use -fno-builtin-fmodf in the above compile flags.=