LoongArch: Add support for scalbn[f]

System Internals / glibc - Xiaolin Tang [loongson.cn] - 29 November 2022 08:00 UTC

Add inline assembler for the scalbn functions. Passes GLIBC regression.

GCC 13, LoongArch support ___builtin_scalbn{,f} with -fno-math-errno, but only "libm" can use -fno-math-errno in GLIBC, and scalbn is in libc instead of libm because __printf_fp calls it.

e3d9ca4e94 LoongArch: Add support for scalbn[f]
sysdeps/loongarch/fpu/s_scalbn.c | 29 +++++++++++++++++++++++++++++
sysdeps/loongarch/fpu/s_scalbnf.c | 29 +++++++++++++++++++++++++++++
2 files changed, 58 insertions(+)

Upstream: sourceware.org


  • Share