This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Disable one hypot test for inline double testing


I saw one test of hypot fail in test-idouble on x86 because of
overflow to infinity.  I don't know what perturbed the inline code
generation for this test, but it seems reasonable to disable it for
inline double testing the same way other similar tests are disabled
for inline float and long double testing; I propose this patch (tested
x86) to do so.

2012-05-05  Joseph Myers  <joseph@codesourcery.com>

	* math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
	Disable one test.

diff --git a/math/libm-test.inc b/math/libm-test.inc
index 0875e2c..ceb7d35 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -4049,7 +4049,7 @@ hypot_test (void)
   TEST_ff_f (hypot, 0x1.234566p-126L, 0x1.234566p-126L, 1.891441686191081936598531534017449451173e-38L);
 #endif
 
-#ifndef TEST_FLOAT
+#if !defined TEST_FLOAT && !(defined TEST_DOUBLE && defined TEST_INLINE)
   TEST_ff_f (hypot, 0x3p1021L, 0x4p1021L, 0x5p1021L);
 #endif
 

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]