aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2021-02-11 11:01:10 +0000
committerDimitry Andric <dim@FreeBSD.org>2021-02-11 11:01:10 +0000
commit25120662284466ecef976df8f86e97bafdedf991 (patch)
treecb9ed0c538c04c5c87ed8a29e0c86eba6b2c0fc5 /contrib
parentc6ded47d0bae801589b564dbe01dccd474edaed0 (diff)
downloadsrc-25120662284466ecef976df8f86e97bafdedf991.tar.gz
src-25120662284466ecef976df8f86e97bafdedf991.zip
Fix lib/msun/test builds on platforms without 80-bit long doubles
After d3338f3355a612cf385632291f46c5777bba8d18, 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: d3338f3355a612cf385632291f46c5777bba8d18
Diffstat (limited to 'contrib')
-rw-r--r--contrib/netbsd-tests/lib/libm/t_hypot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libm/t_hypot.c b/contrib/netbsd-tests/lib/libm/t_hypot.c
index 075c5c83fe14..cbb056ee470e 100644
--- a/contrib/netbsd-tests/lib/libm/t_hypot.c
+++ b/contrib/netbsd-tests/lib/libm/t_hypot.c
@@ -70,6 +70,7 @@ ATF_TC_BODY(pr50698, tc)
ATF_CHECK(!isnan(val));
}
+#if __LDBL_MANT_DIG__ == 64
ATF_TC(hypotl_near_underflow);
ATF_TC_HEAD(hypotl_near_underflow, tc)
{
@@ -88,6 +89,7 @@ ATF_TC_BODY(hypotl_near_underflow, tc)
ATF_CHECK(!isinf(val));
ATF_CHECK(fabsl(val - e) <= 2 * ulp);
}
+#endif /* __LDBL_MANT_DIG__ == 64 */
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, hypotf_integer);
ATF_TP_ADD_TC(tp, pr50698);
+#if __LDBL_MANT_DIG__ == 64
ATF_TP_ADD_TC(tp, hypotl_near_underflow);
+#endif /* __LDBL_MANT_DIG__ == 64 */
return atf_no_error();
}