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:
Jonathan Wakely
2026-04-16 16:08:45 +01:00
committed by Jonathan Wakely
parent 26e88fe809
commit 37a9529bcc

View File

@@ -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__