[libc][math] Update exceptional cases for logf, log10f, log2f, log1pf.
authorTue Ly <lntue.h@gmail.com>
Fri, 10 Feb 2023 05:10:22 +0000 (00:10 -0500)
committerTue Ly <lntue@google.com>
Fri, 10 Feb 2023 19:08:50 +0000 (14:08 -0500)
commitae2d8b49713d8987124ba5eee41b4b29191bbd56
tree221444298c47d3af1e338292cbd13e7a26d6c98d
parent35188e02d1f2ca57ed2d0bf6f0045ee95779b0fe
[libc][math] Update exceptional cases for logf, log10f, log2f, log1pf.

Properly set floating point exceptions and add more exceptional
values for non-FMA x86-64 targets.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D143699
13 files changed:
libc/src/__support/FPUtil/except_value_utils.h
libc/src/math/generic/CMakeLists.txt
libc/src/math/generic/log10f.cpp
libc/src/math/generic/log1pf.cpp
libc/src/math/generic/log2f.cpp
libc/src/math/generic/logf.cpp
libc/test/UnitTest/FPMatcher.h
libc/test/src/math/exhaustive/log1pf_test.cpp
libc/test/src/math/log10f_test.cpp
libc/test/src/math/log1pf_test.cpp
libc/test/src/math/log2f_test.cpp
libc/test/src/math/logf_test.cpp
utils/bazel/llvm-project-overlay/libc/BUILD.bazel