From 7a25eb06bfa838900bef78b975c38aa7e012b587 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 24 May 2012 15:36:54 +0000 Subject: Add tests for underflow exception bugs 10846, 14036. --- math/libm-test.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'math/libm-test.inc') diff --git a/math/libm-test.inc b/math/libm-test.inc index 5424866..5946ca8 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -3501,6 +3501,7 @@ exp_test (void) #if !(defined TEST_LDOUBLE && LDBL_MAX_EXP > 1024) TEST_f_f (exp, 710, plus_infty, OVERFLOW_EXCEPTION); + TEST_f_f (exp, -1234, plus_zero, UNDERFLOW_EXCEPTION); #endif TEST_f_f (exp, 1e5, plus_infty, OVERFLOW_EXCEPTION); TEST_f_f (exp, max_value, plus_infty, OVERFLOW_EXCEPTION); @@ -6732,6 +6733,8 @@ pow_test (void) TEST_ff_f (pow, 0x1.0000000000001p0L, -0x1.23456789abcdfp61L, 1.0118762747828234466621210689458255908670e-253L); #endif + TEST_ff_f (pow, 2.0L, -100000.0L, plus_zero, UNDERFLOW_EXCEPTION); + END (pow); } -- cgit v1.1