diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2013-05-23 23:37:00 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2013-05-23 23:37:00 +0200 |
commit | f9e888643115b4b2f28853ebd1733f4410fb8839 (patch) | |
tree | 58c69f6cef623679080e8933b6c79880bfbd7cb8 /math/test-misc.c | |
parent | d78eef6ebc008f784f501ce208bef12c6eafda27 (diff) | |
parent | b934acf0e93c5a220551ed6e686bb9d45a24a8cc (diff) |
Merge branch 'baseline' into refs/top-bases/tschwinge/Roger_Whittaker
Diffstat (limited to 'math/test-misc.c')
-rw-r--r-- | math/test-misc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/math/test-misc.c b/math/test-misc.c index d64e8e2fcc..c13bafa117 100644 --- a/math/test-misc.c +++ b/math/test-misc.c @@ -1056,7 +1056,7 @@ main (void) } #endif -#ifdef __i386__ +#if defined (__i386__) || defined (__x86_64__) /* This is a test for the strange long doubles in x86 FPUs. */ { union @@ -1074,7 +1074,7 @@ main (void) } } - /* Special NaNs in x86 long double. Test for scalbl. */ + /* Special qNaNs in x86 long double. Test for scalbl. */ { union { @@ -1087,12 +1087,12 @@ main (void) r = scalbl (u.d, 0.0); if (!isnan (r)) { - puts ("scalbl(NaN, 0) does not return NaN"); + puts ("scalbl (qNaN, 0) does not return NaN"); result = 1; } else if (memcmp (&r, &u.d, sizeof (double)) != 0) { - puts ("scalbl(NaN, 0) does not return the same NaN"); + puts ("scalbl (qNaN, 0) does not return the same NaN"); result = 1; } } @@ -1116,7 +1116,7 @@ main (void) } else if (fetestexcept (FE_UNDERFLOW)) { - puts ("scalbl(NaN, 0) raises underflow exception"); + puts ("scalbl (LDBL_MIN, 2147483647) raises underflow exception"); result = 1; } @@ -1134,7 +1134,7 @@ main (void) } else if (fetestexcept (FE_OVERFLOW)) { - puts ("scalbl(NaN, 0) raises overflow exception"); + puts ("scalbl (LDBL_MAX, -2147483647) raises overflow exception"); result = 1; } } |