[all-commits] [llvm/llvm-project] 055be3: [libc] Enable hermetic floating point tests again.

lntue via All-commits all-commits at lists.llvm.org
Wed Jun 14 07:54:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 055be3c30c78e6ed1e219f8007fbe8302bcbea43
      https://github.com/llvm/llvm-project/commit/055be3c30c78e6ed1e219f8007fbe8302bcbea43
  Author: Tue Ly <lntue at google.com>
  Date:   2023-06-14 (Wed, 14 Jun 2023)

  Changed paths:
    M libc/include/llvm-libc-macros/fenv-macros.h
    M libc/src/__support/FPUtil/FEnvImpl.h
    M libc/test/UnitTest/CMakeLists.txt
    M libc/test/UnitTest/FPMatcher.h
    M libc/test/UnitTest/RoundingModeUtils.cpp
    M libc/test/UnitTest/RoundingModeUtils.h
    M libc/test/src/CMakeLists.txt
    M libc/test/src/__support/FPUtil/CMakeLists.txt
    M libc/test/src/__support/FPUtil/rounding_mode_test.cpp
    M libc/test/src/fenv/CMakeLists.txt
    M libc/test/src/math/SqrtTest.h
    M libc/test/src/math/exhaustive/acosf_test.cpp
    M libc/test/src/math/exhaustive/acoshf_test.cpp
    M libc/test/src/math/exhaustive/asinf_test.cpp
    M libc/test/src/math/exhaustive/asinhf_test.cpp
    M libc/test/src/math/exhaustive/atanf_test.cpp
    M libc/test/src/math/exhaustive/atanhf_test.cpp
    M libc/test/src/math/exhaustive/cosf_test.cpp
    M libc/test/src/math/exhaustive/coshf_test.cpp
    M libc/test/src/math/exhaustive/exp10f_test.cpp
    M libc/test/src/math/exhaustive/exp2f_test.cpp
    M libc/test/src/math/exhaustive/expf_test.cpp
    M libc/test/src/math/exhaustive/expm1f_test.cpp
    M libc/test/src/math/exhaustive/hypotf_test.cpp
    M libc/test/src/math/exhaustive/log10f_test.cpp
    M libc/test/src/math/exhaustive/log1pf_test.cpp
    M libc/test/src/math/exhaustive/log2f_test.cpp
    M libc/test/src/math/exhaustive/logf_test.cpp
    M libc/test/src/math/exhaustive/sincosf_test.cpp
    M libc/test/src/math/exhaustive/sinf_test.cpp
    M libc/test/src/math/exhaustive/sinhf_test.cpp
    M libc/test/src/math/exhaustive/tanf_test.cpp
    M libc/test/src/math/exhaustive/tanhf_test.cpp
    M libc/test/src/math/log10_test.cpp
    M libc/test/src/math/log1p_test.cpp
    M libc/test/src/math/log2_test.cpp
    M libc/test/src/math/log_test.cpp
    M libc/test/src/math/sincosf_test.cpp
    M libc/test/src/stdio/sprintf_test.cpp
    M libc/utils/MPFRWrapper/MPFRUtils.h
    M utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel

  Log Message:
  -----------
  [libc] Enable hermetic floating point tests again.

Fixing an issue with LLVM libc's fenv.h defined rounding mode macros
differently from system libc, making get_round() return different values from
fegetround().  Also letting math tests to skip rounding modes that cannot be
set.  This should allow math tests to be run on platforms in which fenv.h is not
implemented yet.

This allows us to re-enable hermatic floating point tests in
https://reviews.llvm.org/D151123 and reverting https://reviews.llvm.org/D152742.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D152873




More information about the All-commits mailing list