mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
libstdc++: Skip std::generate_canonical tests for IBM long double [PR124540]
This tests assumes IEEE semantics, so fails on POWER with IBM long double format. Just skip the long double part of the test. libstdc++-v3/ChangeLog: PR libstdc++/124540 * testsuite/26_numerics/random/uniform_real_distribution/operators/gencanon.cc: Skip long double tests for IBM long double format.
This commit is contained in:
committed by
Jonathan Wakely
parent
26e88fe809
commit
37a9529bcc
@@ -201,11 +201,13 @@ test00()
|
||||
VERIFY(skips == 0);
|
||||
}
|
||||
{ // long double
|
||||
#if __LDBL_MANT_DIG__ != 106 // disable this for IBM double double
|
||||
int skips{};
|
||||
auto rng2{rng};
|
||||
auto rng3{rng};
|
||||
test01<long double>(rng2, rng3, skips);
|
||||
VERIFY(skips == 0);
|
||||
#endif
|
||||
}
|
||||
#ifndef _GLIBCXX_GENERATE_CANONICAL_STRICT
|
||||
# ifdef __SIZEOF_FLOAT128__
|
||||
|
||||
Reference in New Issue
Block a user