[libc-commits] [PATCH] D150906: [libc] Add a str() method to FPBits which returns a string representation.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu May 18 13:56:09 PDT 2023


sivachandra created this revision.
sivachandra added reviewers: lntue, michaelrj.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
sivachandra requested review of this revision.

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).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150906

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150906.523544.patch
Type: text/x-patch
Size: 23709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230518/5e248b40/attachment-0001.bin>


More information about the libc-commits mailing list