[all-commits] [llvm/llvm-project] d69cbd: [libc] Improve information printed on failure of a...

Siva Chandra via All-commits all-commits at lists.llvm.org
Tue May 5 10:27:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d69cbd826a8f3f3860ce97e22ab17601038480d0
      https://github.com/llvm/llvm-project/commit/d69cbd826a8f3f3860ce97e22ab17601038480d0
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2020-05-05 (Tue, 05 May 2020)

  Changed paths:
    M libc/test/src/math/cosf_test.cpp
    M libc/test/src/math/sincosf_test.cpp
    M libc/test/src/math/sinf_test.cpp
    M libc/utils/CPP/TypeTraits.h
    M libc/utils/MPFRWrapper/CMakeLists.txt
    M libc/utils/MPFRWrapper/MPFRUtils.cpp
    M libc/utils/MPFRWrapper/MPFRUtils.h
    M libc/utils/testutils/StreamWrapper.cpp

  Log Message:
  -----------
  [libc] Improve information printed on failure of a math test which uses MPFR.

A new test matcher class MPFRMatcher is added along with helper macros
EXPECT|ASSERT_MPFR_MATCH.

New type traits classes RemoveCV and IsFloatingPointType have been
added and used to implement the above class and its helpers.

Reviewers: abrachet, phosek

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




More information about the All-commits mailing list