[PATCH v2 20/28] aarch64: Use NO_MATH_REDIRECT on pow_advsimd.c
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Wed Oct 29 14:13:44 GMT 2025
Hi,
>> clang does not optimize the fma calls, instead issuing __fma.
>
> What do you mean by that? Did you inline fma call?
There are calls to fma() which should be inlined and not redirected to __fma
with PLT avoidance. This issue is likely more widespread since various
math functions are inlined as a single instruction, and we don't want to
redirect such functions. It gets harder if one compiler inlines but another
doesn't, so a better general mechanism might be needed.
The patch looks good to me as a workaround.
Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
Cheers,
Wilco
More information about the Libc-alpha
mailing list