[libc-commits] [PATCH] D134917: [libc] Resolve NaN/implementation-defined behavior of floating-point tests
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Oct 5 16:43:42 PDT 2022
michaelrj added inline comments.
================
Comment at: libc/utils/UnitTest/FPMatcher.h:75
const T neg_zero = T(FPBits::neg_zero()); \
- const T aNaN = T(FPBits::build_nan(1)); \
+ const T aNaN = T(FPBits::build_quiet_nan(1)); \
const T inf = T(FPBits::inf()); \
----------------
the build failures were caused by this line. Changing it back to `build_nan` fixes the issue. Maybe add `qNaN` as an additional variable for quiet NaN purposes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134917/new/
https://reviews.llvm.org/D134917
More information about the libc-commits
mailing list