Skip floating-point edge-case tests when using an x87
authorBenjamin Barenblat <bbaren@google.com>
Thu, 14 Apr 2022 17:20:16 +0000 (18:20 +0100)
committerBenjamin Barenblat <bbaren@debian.org>
Thu, 14 Apr 2022 17:20:16 +0000 (18:20 +0100)
commita0c41abcbfb82dc32275f103ca697db8b3cf07e9
tree59204e05de13d3cbbe30fb006a6e5c9de1099014
parent7bde567f14d52b0dfdfb3ee4f9e544b887bc3c78
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