Only test ld_pi_odd with LDBL_MANT_DIG == 64 to fix the build
The empty (unimplemented) test inputs for sparc64 trigger a -Wtype-limits build failure because nitems of an empty array is always false, i.e., deadcode. MFC after: 1 month MFC with: r321455 Reported by: Jenkins (sparc64 job)
This commit is contained in:
parent
82482c7c1f
commit
db92647731
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321484
@ -156,11 +156,6 @@ ATF_TC_BODY(reduction, tc)
|
||||
9.8477555741888350649e+4314L,
|
||||
1.6061597222105160737e+4326L,
|
||||
};
|
||||
#elif LDBL_MANT_DIG == 113
|
||||
static const long double ld_pi_odd[] = {
|
||||
/* XXX */
|
||||
};
|
||||
#endif
|
||||
|
||||
#if defined(__clang__) && \
|
||||
((__clang_major__ >= 5))
|
||||
@ -205,7 +200,7 @@ ATF_TC_BODY(reduction, tc)
|
||||
ATF_CHECK(fabs(tan(-d_pi_odd[i] * 2)) < 2 * DBL_EPSILON);
|
||||
}
|
||||
|
||||
#if LDBL_MANT_DIG > 53
|
||||
#if LDBL_MANT_DIG == 64 /* XXX: || LDBL_MANT_DIG == 113 */
|
||||
for (i = 0; i < nitems(ld_pi_odd); i++) {
|
||||
ATF_CHECK(fabsl(sinl(ld_pi_odd[i])) < LDBL_EPSILON);
|
||||
ATF_CHECK(cosl(ld_pi_odd[i]) == -1.0);
|
||||
|
Loading…
Reference in New Issue
Block a user