mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Add truncl tests related to BZ#16414
This commit is contained in:
@ -11283,6 +11283,15 @@ static const struct test_f_f_data trunc_test_data[] =
|
||||
TEST_f_f (trunc, -72057594037927936.75L, -72057594037927936.0L),
|
||||
TEST_f_f (trunc, -72057594037927937.5L, -72057594037927937.0L),
|
||||
|
||||
/* Check cases where first double is a exact integer higher than 2^52 and
|
||||
the precision is determined by second long double for IBM long double. */
|
||||
TEST_f_f (trunc, 34503599627370498.515625L, 34503599627370498.0L),
|
||||
TEST_f_f (trunc, -34503599627370498.515625L, -34503599627370498.0L),
|
||||
# if LDBL_MANT_DIG >= 106
|
||||
TEST_f_f (trunc, 1192568192774434123539907640624.484375L, 1192568192774434123539907640624.0L),
|
||||
TEST_f_f (trunc, -1192568192774434123539907640624.484375L, -1192568192774434123539907640624.0L),
|
||||
# endif
|
||||
|
||||
TEST_f_f (trunc, 10141204801825835211973625643007.5L, 10141204801825835211973625643007.0L),
|
||||
TEST_f_f (trunc, 10141204801825835211973625643008.25L, 10141204801825835211973625643008.0L),
|
||||
TEST_f_f (trunc, 10141204801825835211973625643008.5L, 10141204801825835211973625643008.0L),
|
||||
|
Reference in New Issue
Block a user