From fd8f4d46f560c594fa6ecad686f809947a67b2a6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 4 Dec 2000 01:27:16 +0000 Subject: Update. * math/test-misc.c (main): Test for pseudo denormal numbers on x86. --- math/test-misc.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'math/test-misc.c') diff --git a/math/test-misc.c b/math/test-misc.c index 04935dc26d..098695f73f 100644 --- a/math/test-misc.c +++ b/math/test-misc.c @@ -144,5 +144,24 @@ main (void) } #endif +#ifdef __i386__ + /* This is a test for the strange long doubles in x86 FPUs. */ + { + union + { + char b[10]; + long double d; + } u = + { .b = { 0, 0, 0, 0, 0, 0, 0, 0x80, 0, 0 } }; + + if (fpclassify (u.d) != FP_NORMAL) + { + printf ("fpclassify (0x00008000000000000000) failed: %d (%Lg)\n", + fpclassify (u.d), u.d); + result = 1; + } + } +#endif + return result; } -- cgit 1.4.1