diff options
| author | Joe Ramsay <Joe.Ramsay@arm.com> | 2024-09-23 15:26:12 +0100 |
|---|---|---|
| committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2025-02-27 17:05:45 +0000 |
| commit | 354aeaf2130c1484007025563fe87c997f07324a (patch) | |
| tree | a4ca6d4d66f1316ebfd1671fa6eb0df42a4a0e12 /scripts/cpp | |
| parent | a991a0fc7c051d7ef2ea7778e0a699f22d4e53d7 (diff) | |
| download | glibc-354aeaf2130c1484007025563fe87c997f07324a.tar.xz glibc-354aeaf2130c1484007025563fe87c997f07324a.zip | |
AArch64: Improve codegen in SVE expf & related routines
Reduce MOV and MOVPRFX by improving special-case handling. Use inline
helper to duplicate the entire computation between the special- and
non-special case branches, removing the contention for z0 between x
and the return value.
Also rearrange some MLAs and MLSs - by making the multiplicand the
destination we can avoid a MOVPRFX in several cases. Also change which
constants go in the vector used for lanewise ops - the last lane is no
longer wasted.
Spotted that shift was incorrect in exp2f and exp10f, w.r.t. to the
comment that explains it. Fixed - worst-case ULP for exp2f moves
around but it doesn't change significantly for either routine.
Worst-case error for coshf increases due to passing x to exp rather
than abs(x) - updated the comment, but does not require regen-ulps.
Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
(cherry picked from commit 7b8c134b5460ed933d610fa92ed1227372b68fdc)
Diffstat (limited to 'scripts/cpp')
0 files changed, 0 insertions, 0 deletions
