summaryrefslogtreecommitdiff
path: root/libgcc/config/rs6000/ibm-ldouble.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgcc/config/rs6000/ibm-ldouble.c')
-rw-r--r--libgcc/config/rs6000/ibm-ldouble.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgcc/config/rs6000/ibm-ldouble.c b/libgcc/config/rs6000/ibm-ldouble.c
index 28e02e995d4..7ca900c7830 100644
--- a/libgcc/config/rs6000/ibm-ldouble.c
+++ b/libgcc/config/rs6000/ibm-ldouble.c
@@ -104,6 +104,8 @@ __gcc_qadd (double a, double aa, double c, double cc)
if (nonfinite (z))
{
+ if (fabs (z) != inf())
+ return z;
z = cc + aa + c + a;
if (nonfinite (z))
return z;