[Bug target/97142] __builtin_fmod not optimized on POWER

fx at gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 21 14:47:14 GMT 2020


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

--- Comment #5 from Dave Love <fx at gnu dot org> ---
I meant to show that x86_64 expands the built in fmod too.  (I wasn't sure
whether "inline" was the right term, as it seems not to be done by
-finline-functions.)

Yes, xlf -O3 (?) and above imlies something like -ffast-math.  xlf also does
vectorized maths functions, but I don't think the speed of libm is as relevant
as not calling out to it.  (Nothing leapt out from profiles for the rest of
that set to suggest other builtins are similar, but I haven't examined them
closely.)

I'll attach the assembler, which there's an awful lot of compared with x86_64.


More information about the Gcc-bugs mailing list