[Bug target/103008] poor inlined builtin_fmod on x86_64

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Feb 11 15:47:31 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103008

--- Comment #13 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Richard Biener from comment #12)
> Just as data-point on znver2 Uros testcase shows
> 
> rguenther@ryzen:/tmp> gcc-11 t.c -Ofast -lm -march=znver2
> rguenther@ryzen:/tmp> numactl --physcpubind=3 /usr/bin/time ./a.out 
> 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=znver2 -fno-builtin-fmod

You should use -fno-builtin-fmodf in the above compile flags.


More information about the Gcc-bugs mailing list