diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2013-05-06 14:40:17 -0500 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2013-05-06 14:40:17 -0500 |
commit | 16e616a72f9ac247520c0c7da99b99e229facdf9 (patch) | |
tree | ebecfcd57f8fec0766600b1bcc1d037fdd83ed8a /math | |
parent | d5e8275481e57cc7f3bd6ba435a7bbced9b97202 (diff) | |
download | glibc-16e616a72f9ac247520c0c7da99b99e229facdf9.tar.gz glibc-16e616a72f9ac247520c0c7da99b99e229facdf9.tar.xz glibc-16e616a72f9ac247520c0c7da99b99e229facdf9.zip |
PowerPC: fix hypot/hypof FP exceptions
This patch fixes hypot/hypotf spurious floating-point exceptions generate by internal operations.
Diffstat (limited to 'math')
-rw-r--r-- | math/libm-test.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc index 4e1eb72919..7afa46dba8 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -9159,6 +9159,7 @@ hypot_test (void) TEST_ff_f (hypot, 0.75L, 1.25L, 1.45773797371132511771853821938639577L); TEST_ff_f (hypot, 1.0L, 0x1p-61L, 1.0L); + TEST_ff_f (hypot, 0x1p+0L, 0x1.fp-129L, 0x1p+0L); #if defined TEST_LDOUBLE && LDBL_MANT_DIG >= 106 TEST_ff_f (hypot, 0x1.23456789abcdef0123456789ab8p-500L, 0x1.23456789abcdef0123456789ab8p-500L, 4.9155782399407039128612180934736799735113e-151L); #endif @@ -9170,6 +9171,7 @@ hypot_test (void) #if !defined TEST_FLOAT && !(defined TEST_DOUBLE && defined TEST_INLINE) TEST_ff_f (hypot, 0x3p1021L, 0x4p1021L, 0x5p1021L); + TEST_ff_f (hypot, 0x1p+0L, 0x0.3ep-1022L, 0x1p+0L); #endif #if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384 && !defined TEST_INLINE |