]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
AArch64: Don't set flush-subnormals-to-zero flag on startup
authorAlex Richardson <arichardson@FreeBSD.org>
Mon, 1 Mar 2021 14:27:30 +0000 (14:27 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Mon, 1 Mar 2021 14:27:30 +0000 (14:27 +0000)
commit0e4ff0acbe80c547988bede738af2e227c7eb47c
treecd4199b9ce648fa27b691f508e264f32ceeecc33
parent10f2a0c2e8766e9878ad4181f555d8dda84da34e
AArch64: Don't set flush-subnormals-to-zero flag on startup

This flag has been set on startup since 65618fdda0f272a823e6701966421bdca0efa301.
However, This causes some of the math-related tests to fail as they report
zero instead of a tiny number. This fixes at least
/usr/tests/lib/msun/ldexp_test and possibly others.
Additionally, setting this flag prevents printf() from printing subnormal
numbers in decimal form.
See also https://www.openwall.com/lists/musl/2021/02/26/1

PR: 253847
Reviewed By: mmel
Differential Revision: https://reviews.freebsd.org/D28938
lib/libc/tests/stdio/printfloat_test.c
sys/arm64/arm64/vm_machdep.c