Fix lib/msun/test builds on platforms without 80-bit long doubles
Afterd3338f3355
, the lib/msun test case 'hypotl_near_underflow' would fail to compile on platforms where long doubles weren't 80 bit, like on x86. Disable this particular test on such platforms for now. PR: 253313 MFC after: 1 week X-MFC-With:d3338f3355
This commit is contained in:
parent
c6ded47d0b
commit
2512066228
@ -70,6 +70,7 @@ ATF_TC_BODY(pr50698, tc)
|
|||||||
ATF_CHECK(!isnan(val));
|
ATF_CHECK(!isnan(val));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if __LDBL_MANT_DIG__ == 64
|
||||||
ATF_TC(hypotl_near_underflow);
|
ATF_TC(hypotl_near_underflow);
|
||||||
ATF_TC_HEAD(hypotl_near_underflow, tc)
|
ATF_TC_HEAD(hypotl_near_underflow, tc)
|
||||||
{
|
{
|
||||||
@ -88,6 +89,7 @@ ATF_TC_BODY(hypotl_near_underflow, tc)
|
|||||||
ATF_CHECK(!isinf(val));
|
ATF_CHECK(!isinf(val));
|
||||||
ATF_CHECK(fabsl(val - e) <= 2 * ulp);
|
ATF_CHECK(fabsl(val - e) <= 2 * ulp);
|
||||||
}
|
}
|
||||||
|
#endif /* __LDBL_MANT_DIG__ == 64 */
|
||||||
|
|
||||||
ATF_TP_ADD_TCS(tp)
|
ATF_TP_ADD_TCS(tp)
|
||||||
{
|
{
|
||||||
@ -95,7 +97,9 @@ ATF_TP_ADD_TCS(tp)
|
|||||||
ATF_TP_ADD_TC(tp, hypot_integer);
|
ATF_TP_ADD_TC(tp, hypot_integer);
|
||||||
ATF_TP_ADD_TC(tp, hypotf_integer);
|
ATF_TP_ADD_TC(tp, hypotf_integer);
|
||||||
ATF_TP_ADD_TC(tp, pr50698);
|
ATF_TP_ADD_TC(tp, pr50698);
|
||||||
|
#if __LDBL_MANT_DIG__ == 64
|
||||||
ATF_TP_ADD_TC(tp, hypotl_near_underflow);
|
ATF_TP_ADD_TC(tp, hypotl_near_underflow);
|
||||||
|
#endif /* __LDBL_MANT_DIG__ == 64 */
|
||||||
|
|
||||||
return atf_no_error();
|
return atf_no_error();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user