aboutsummaryrefslogtreecommitdiff
path: root/scripts/cpp
diff options
context:
space:
mode:
authorJoseph Myers <josmyers@redhat.com>2024-09-04 13:20:18 +0000
committerArjun Shankar <arjun@redhat.com>2024-09-27 17:24:33 +0200
commitad93c2047d791044d45e8f65070d821b0b918993 (patch)
tree544becd161496e0c1af1a4fa1e7764c3aaec06d9 /scripts/cpp
parentcac10d88c684c0171e549d813bfef7a31029f257 (diff)
downloadglibc-ad93c2047d791044d45e8f65070d821b0b918993.tar.xz
glibc-ad93c2047d791044d45e8f65070d821b0b918993.zip
Improve NaN payload testing
There are two separate sets of tests of NaN payloads in glibc: * libm-test-{get,set}payload* verify that getpayload, setpayload, setpayloadsig and __builtin_nan functions are consistent in their payload handling. * test-nan-payload verifies that strtod-family functions and the not-built-in nan functions are consistent in their payload handling. Nothing, however, connects the two sets of functions (i.e., verifies that strtod / nan are consistent with getpayload / setpayload / __builtin_nan). Improve test-nan-payload to check actual payload value with getpayload rather than just verifying that the strtod and nan functions produce the same NaN. Also check that the NaNs produced aren't signaling and extend the tests to cover _FloatN / _FloatNx. Tested for x86_64. (cherry picked from commit be77d5ae417236883c02d3d67c0716e3f669fa41)
Diffstat (limited to 'scripts/cpp')
0 files changed, 0 insertions, 0 deletions