Previously there were several attempts to make the format checks for NaN and Inf work across platforms, like AIX and Solaris, that print these values slightly differently. This resulted in a number of forward fixes, until we finally disabled the tests for NaN and Inf. This change should make the test robust across different platforms, and reduce the overall amount of code by delegating to helper functions that use the same format strings as the implementations used by PrintNumber(). This additionally reverts commit5a9bad171bandfa56e362af. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D146851
28 KiB
28 KiB