Skip floating-point edge-case tests when using an x87
authorBenjamin Barenblat <bbaren@google.com>
Fri, 27 May 2022 20:58:38 +0000 (21:58 +0100)
committerBenjamin Barenblat <bbaren@debian.org>
Fri, 27 May 2022 20:58:38 +0000 (21:58 +0100)
commit4d043c73fb4b8a3674b5093d058d056d7922a8a0
tree212ac382e0af00b526ec8e6838cf28ad6459d545
parent752e456bd911ebebd1308a8f1744a4771411db1d
Skip floating-point edge-case tests when using an x87

Forwarded: yes
Applied-Upstream: https://github.com/abseil/abseil-cpp/commit/311bbd2e50ea35e921a08186840d3b6ca279e880

32-bit Intel CPUs use 80-bit floats for intermediate values, which can
change the results of floating point computations from what we normally
expect. Identify tests that are sensitive to the x87, and skip them when
we’re on 32-bit Intel.

The author works at Google. Upstream applied this patch as Piper
revision 378722613 and exported it to GitHub; the Applied-Upstream URL
above points to the exported commit.

Gbp-Pq: Name float-tests-disable-i386.diff
absl/random/beta_distribution_test.cc
absl/random/distributions_test.cc
absl/random/exponential_distribution_test.cc
absl/random/uniform_real_distribution_test.cc
absl/time/duration_test.cc