[all-commits] [llvm/llvm-project] 00bd8e: [libc] Add a str() method to FPBits which returns ...

Siva Chandra via All-commits all-commits at lists.llvm.org
Thu May 18 23:20:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 00bd8e90116d99499f9161914fa5e00eed14a5ff
      https://github.com/llvm/llvm-project/commit/00bd8e90116d99499f9161914fa5e00eed14a5ff
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2023-05-19 (Fri, 19 May 2023)

  Changed paths:
    M libc/src/__support/FPUtil/CMakeLists.txt
    M libc/src/__support/FPUtil/FPBits.h
    M libc/src/__support/FPUtil/x86_64/LongDoubleBits.h
    M libc/test/UnitTest/FPMatcher.h
    M libc/test/src/__support/FPUtil/CMakeLists.txt
    A libc/test/src/__support/FPUtil/fpbits_test.cpp
    M libc/utils/MPFRWrapper/MPFRUtils.cpp

  Log Message:
  -----------
  [libc] Add a str() method to FPBits which returns a string representation.

Unit tests for the str() method have also been added.

Previously, a separate test only helper function was being used by the
test matchers which has regressed over many cleanups. Moreover, being a
test only utility, it was not tested separately (and hence the
regression).

Reviewed By: michaelrj

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




More information about the All-commits mailing list