[PATCH] aarch64: Use target attributes to enable SVE in math functions
Joe Ramsay
joe.ramsay@arm.com
Mon Mar 30 15:06:02 GMT 2026
On Fri, Mar 27, 2026 at 05:00:55PM +0000, Adhemerval Zanella wrote:
Hi Adhemerval,
Would it be possible to make this change in AOR first? We prefer to
keep the two in sync as much as possible, and for license reasons it
is preferable to make changes in AOR first. We do a similar thing to
this in AOR by applying target attributes at file scope, but I prefer
your approach of doing it at function scope.
> A new SVE_FUNCTION macro (mapping to
> __attribute__((target("+sve")))) and corresponding pragmas
> (OPTIONS_PUSH_SVE / OPTIONS_POP) are introduced in sv_math.h.
> These are then applied across all SVE-specific math implementations in
> sysdeps/aarch64/fpu/.
Is it possible to use the attributes directly here rather than
pragmas? That way I think the push/pop thing wouldn't be needed?
Thanks,
Joe
More information about the Libc-alpha
mailing list