about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/alpha/fpu/libm-test-ulps40
-rw-r--r--sysdeps/arm/libm-test-ulps40
-rw-r--r--sysdeps/i386/fpu/libm-test-ulps46
-rw-r--r--sysdeps/ia64/fpu/libm-test-ulps46
-rw-r--r--sysdeps/ieee754/ldbl-128/e_hypotl.c132
-rw-r--r--sysdeps/m68k/fpu/libm-test-ulps42
-rw-r--r--sysdeps/mips/fpu/libm-test-ulps40
-rw-r--r--sysdeps/powerpc/fpu/libm-test-ulps40
-rw-r--r--sysdeps/s390/fpu/libm-test-ulps40
-rw-r--r--sysdeps/sh/sh4/fpu/libm-test-ulps40
-rw-r--r--sysdeps/sparc/sparc32/fpu/libm-test-ulps40
-rw-r--r--sysdeps/sparc/sparc64/fpu/libm-test-ulps59
12 files changed, 378 insertions, 227 deletions
diff --git a/sysdeps/alpha/fpu/libm-test-ulps b/sysdeps/alpha/fpu/libm-test-ulps
index 515d07169c..a36dacf17f 100644
--- a/sysdeps/alpha/fpu/libm-test-ulps
+++ b/sysdeps/alpha/fpu/libm-test-ulps
@@ -19,22 +19,22 @@ double: 1
 idouble: 1
 
 # cabs
-Test "cabs (-0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-0.7 - 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 - 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 + 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 + 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 - 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 - 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508":
+Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "cabs (0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
@@ -161,7 +161,7 @@ double: 1
 idouble: 1
 
 # cexp
-Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 float: 1
 ifloat: 1
 Test "Real part of: cexp (0.7 + 1.2 i) == 0.7296989091503236012 + 1.8768962328348102821 i":
@@ -291,18 +291,18 @@ float: 1
 ifloat: 1
 
 # csqrt
-Test "Real part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Real part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 float: 1
 ifloat: 1
 
@@ -400,31 +400,31 @@ idouble: 2
 ifloat: 1
 
 # hypot
-Test "hypot (-0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, 1.2) == 1.3892443989449804508":
+Test "hypot (0.7, 1.2) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "hypot (0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
diff --git a/sysdeps/arm/libm-test-ulps b/sysdeps/arm/libm-test-ulps
index 439c487e83..23a0f35702 100644
--- a/sysdeps/arm/libm-test-ulps
+++ b/sysdeps/arm/libm-test-ulps
@@ -19,22 +19,22 @@ double: 1
 idouble: 1
 
 # cabs
-Test "cabs (-0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-0.7 - 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 - 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 + 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 + 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 - 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 - 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508":
+Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "cabs (0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
@@ -161,7 +161,7 @@ double: 1
 idouble: 1
 
 # cexp
-Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 float: 1
 ifloat: 1
 Test "Real part of: cexp (0.7 + 1.2 i) == 0.72969890915032360123451688642930727 + 1.8768962328348102821139467908203072 i":
@@ -291,18 +291,18 @@ float: 1
 ifloat: 1
 
 # csqrt
-Test "Real part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Real part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 float: 1
 ifloat: 1
 
@@ -400,31 +400,31 @@ idouble: 2
 ifloat: 1
 
 # hypot
-Test "hypot (-0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, 1.2) == 1.3892443989449804508":
+Test "hypot (0.7, 1.2) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "hypot (0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index bd6dc44000..9284188fad 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -42,24 +42,24 @@ ildouble: 1605
 ldouble: 1605
 
 # cabs
-Test "cabs (-0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-0.7 - 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 - 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 + 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 + 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 - 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 - 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508":
+Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
 ildouble: 560
 ldouble: 560
-Test "cabs (0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
@@ -240,10 +240,10 @@ ildouble: 1183
 ldouble: 1183
 
 # cexp
-Test "Real part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Real part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 ildouble: 4
 ldouble: 4
-Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 ildouble: 18
 ldouble: 18
 Test "Real part of: cexp (0.7 + 1.2 i) == 0.72969890915032360123451688642930727 + 1.8768962328348102821139467908203072 i":
@@ -451,20 +451,20 @@ ildouble: 477
 ldouble: 477
 
 # csqrt
-Test "Real part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
 ildouble: 1
 ldouble: 1
-Test "Imaginary part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
-Test "Real part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
+Test "Imaginary part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
+Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
 ildouble: 1
 ldouble: 1
-Test "Imaginary part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
-Test "Real part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
+Test "Real part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 double: 1
 idouble: 1
 ildouble: 237
 ldouble: 237
-Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 ildouble: 128
 ldouble: 128
 
@@ -598,39 +598,39 @@ double: 1
 idouble: 1
 
 # hypot
-Test "hypot (-0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (-0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (-12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (-12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (0.7, 1.2) == 1.3892443989449804508":
+Test "hypot (0.7, 1.2) == 1.3892443989449804508432547041028554":
 double: 1
 ildouble: 560
 ldouble: 560
-Test "hypot (0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ildouble: 406
 ldouble: 406
diff --git a/sysdeps/ia64/fpu/libm-test-ulps b/sysdeps/ia64/fpu/libm-test-ulps
index 25096308ad..b03d7c6b62 100644
--- a/sysdeps/ia64/fpu/libm-test-ulps
+++ b/sysdeps/ia64/fpu/libm-test-ulps
@@ -53,24 +53,24 @@ ildouble: 1605
 ldouble: 1605
 
 # cabs
-Test "cabs (-0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-0.7 - 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 - 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 + 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 + 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 - 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 - 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508":
+Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
 ildouble: 560
 ldouble: 560
-Test "cabs (0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
@@ -282,10 +282,10 @@ ildouble: 1183
 ldouble: 1183
 
 # cexp
-Test "Real part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Real part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 ildouble: 4
 ldouble: 4
-Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 float: 1
 ifloat: 1
 ildouble: 18
@@ -513,26 +513,26 @@ ildouble: 477
 ldouble: 477
 
 # csqrt
-Test "Real part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
 ildouble: 1
 ldouble: 1
-Test "Imaginary part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
-Test "Real part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
+Test "Imaginary part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
+Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
 ildouble: 1
 ldouble: 1
-Test "Imaginary part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
-Test "Real part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
+Test "Real part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 float: 1
 ifloat: 1
 double: 1
 idouble: 1
 ildouble: 237
 ldouble: 237
-Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 float: 1
 ifloat: 1
 ildouble: 128
@@ -692,47 +692,47 @@ double: 1
 idouble: 1
 
 # hypot
-Test "hypot (-0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (-0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (-12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (-12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (0.7, 1.2) == 1.3892443989449804508":
+Test "hypot (0.7, 1.2) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
 ildouble: 560
 ldouble: 560
-Test "hypot (0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 ildouble: 406
 ldouble: 406
-Test "hypot (12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 ildouble: 406
diff --git a/sysdeps/ieee754/ldbl-128/e_hypotl.c b/sysdeps/ieee754/ldbl-128/e_hypotl.c
new file mode 100644
index 0000000000..6834eac59c
--- /dev/null
+++ b/sysdeps/ieee754/ldbl-128/e_hypotl.c
@@ -0,0 +1,132 @@
+/* e_hypotl.c -- long double version of e_hypot.c.
+ * Conversion to long double by Jakub Jelinek, jakub@redhat.com.
+ */
+
+/*
+ * ====================================================
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ *
+ * Developed at SunPro, a Sun Microsystems, Inc. business.
+ * Permission to use, copy, modify, and distribute this
+ * software is freely granted, provided that this notice
+ * is preserved.
+ * ====================================================
+ */
+
+#if defined(LIBM_SCCS) && !defined(lint)
+static char rcsid[] = "$NetBSD: e_hypotl.c,v 1.9 1995/05/12 04:57:27 jtc Exp $";
+#endif
+
+/* __ieee754_hypotl(x,y)
+ *
+ * Method :
+ *	If (assume round-to-nearest) z=x*x+y*y
+ *	has error less than sqrtl(2)/2 ulp, than
+ *	sqrtl(z) has error less than 1 ulp (exercise).
+ *
+ *	So, compute sqrtl(x*x+y*y) with some care as
+ *	follows to get the error below 1 ulp:
+ *
+ *	Assume x>y>0;
+ *	(if possible, set rounding to round-to-nearest)
+ *	1. if x > 2y  use
+ *		x1*x1+(y*y+(x2*(x+x1))) for x*x+y*y
+ *	where x1 = x with lower 64 bits cleared, x2 = x-x1; else
+ *	2. if x <= 2y use
+ *		t1*y1+((x-y)*(x-y)+(t1*y2+t2*y))
+ *	where t1 = 2x with lower 64 bits cleared, t2 = 2x-t1,
+ *	y1= y with lower 64 bits chopped, y2 = y-y1.
+ *
+ *	NOTE: scaling may be necessary if some argument is too
+ *	      large or too tiny
+ *
+ * Special cases:
+ *	hypotl(x,y) is INF if x or y is +INF or -INF; else
+ *	hypotl(x,y) is NAN if x or y is NAN.
+ *
+ * Accuracy:
+ * 	hypotl(x,y) returns sqrtl(x^2+y^2) with error less
+ * 	than 1 ulps (units in the last place)
+ */
+
+#include "math.h"
+#include "math_private.h"
+
+#ifdef __STDC__
+	long double __ieee754_hypotl(long double x, long double y)
+#else
+	long double __ieee754_hypotl(x,y)
+	long double x, y;
+#endif
+{
+	long double a,b,t1,t2,y1,y2,w;
+	int64_t j,k,ha,hb;
+
+	GET_LDOUBLE_MSW64(ha,x);
+	ha &= 0x7fffffffffffffffLL;
+	GET_LDOUBLE_MSW64(hb,y);
+	hb &= 0x7fffffffffffffffLL;
+	if(hb > ha) {a=y;b=x;j=ha; ha=hb;hb=j;} else {a=x;b=y;}
+	SET_LDOUBLE_MSW64(a,ha);	/* a <- |a| */
+	SET_LDOUBLE_MSW64(b,hb);	/* b <- |b| */
+	if((ha-hb)>0x78000000000000LL) {return a+b;} /* x/y > 2**120 */
+	k=0;
+	if(ha > 0x5f3f000000000000LL) {	/* a>2**8000 */
+	   if(ha >= 0x7fff000000000000LL) {	/* Inf or NaN */
+	       u_int64_t low;
+	       w = a+b;			/* for sNaN */
+	       GET_LDOUBLE_LSW64(low,a);
+	       if(((ha&0xffffffffffffLL)|low)==0) w = a;
+	       GET_LDOUBLE_LSW64(low,b);
+	       if(((hb^0x7fff000000000000LL)|low)==0) w = b;
+	       return w;
+	   }
+	   /* scale a and b by 2**-9600 */
+	   ha -= 0x2580000000000000LL;
+	   hb -= 0x2580000000000000LL;	k += 9600;
+	   SET_LDOUBLE_MSW64(a,ha);
+	   SET_LDOUBLE_MSW64(b,hb);
+	}
+	if(hb < 0x20bf000000000000LL) {	/* b < 2**-8000 */
+	    if(hb <= 0x0000ffffffffffffLL) {	/* subnormal b or 0 */
+	        u_int64_t low;
+		GET_LDOUBLE_LSW64(low,b);
+		if((hb|low)==0) return a;
+		t1=0;
+		SET_LDOUBLE_MSW64(t1,0x7ffd000000000000LL); /* t1=2^16382 */
+		b *= t1;
+		a *= t1;
+		k -= 16382;
+	    } else {		/* scale a and b by 2^9600 */
+	        ha += 0x2580000000000000LL; 	/* a *= 2^9600 */
+		hb += 0x2580000000000000LL;	/* b *= 2^9600 */
+		k -= 9600;
+		SET_LDOUBLE_MSW64(a,ha);
+		SET_LDOUBLE_MSW64(b,hb);
+	    }
+	}
+    /* medium size a and b */
+	w = a-b;
+	if (w>b) {
+	    t1 = 0;
+	    SET_LDOUBLE_MSW64(t1,ha);
+	    t2 = a-t1;
+	    w  = __ieee754_sqrtl(t1*t1-(b*(-b)-t2*(a+t1)));
+	} else {
+	    a  = a+a;
+	    y1 = 0;
+	    SET_LDOUBLE_MSW64(y1,hb);
+	    y2 = b - y1;
+	    t1 = 0;
+	    SET_LDOUBLE_MSW64(t1,ha+0x0001000000000000LL);
+	    t2 = a - t1;
+	    w  = __ieee754_sqrtl(t1*y1-(w*(-w)-(t1*y2+t2*b)));
+	}
+	if(k!=0) {
+	    u_int64_t high;
+	    t1 = 1.0L;
+	    GET_LDOUBLE_MSW64(high,t1);
+	    SET_LDOUBLE_MSW64(t1,high+(k<<48));
+	    return t1*w;
+	} else return w;
+}
diff --git a/sysdeps/m68k/fpu/libm-test-ulps b/sysdeps/m68k/fpu/libm-test-ulps
index ddbf3077e3..8351aaf3e9 100644
--- a/sysdeps/m68k/fpu/libm-test-ulps
+++ b/sysdeps/m68k/fpu/libm-test-ulps
@@ -28,22 +28,22 @@ double: 1
 idouble: 1
 
 # cabs
-Test "cabs (-0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-0.7 - 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 - 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 + 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 + 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 - 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 - 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508":
+Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508432547041028554":
 ildouble: 1
 ldouble: 1
-Test "cabs (0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
@@ -209,12 +209,12 @@ ildouble: 2
 ldouble: 2
 
 # cexp
-Test "Real part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Real part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 float: 1
 ifloat: 1
 ildouble: 5
 ldouble: 5
-Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 float: 1
 ifloat: 1
 ildouble: 19
@@ -344,16 +344,16 @@ float: 1
 ifloat: 1
 
 # csqrt
-Test "Real part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
 ildouble: 1
 ldouble: 1
-Test "Real part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
 ildouble: 1
 ldouble: 1
-Test "Real part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Real part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 float: 1
 ifloat: 1
-Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 ildouble: 1
 ldouble: 1
 
@@ -453,31 +453,31 @@ ildouble: 1
 ldouble: 1
 
 # hypot
-Test "hypot (-0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, 1.2) == 1.3892443989449804508":
+Test "hypot (0.7, 1.2) == 1.3892443989449804508432547041028554":
 ildouble: 1
 ldouble: 1
-Test "hypot (0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
diff --git a/sysdeps/mips/fpu/libm-test-ulps b/sysdeps/mips/fpu/libm-test-ulps
index 515d07169c..a36dacf17f 100644
--- a/sysdeps/mips/fpu/libm-test-ulps
+++ b/sysdeps/mips/fpu/libm-test-ulps
@@ -19,22 +19,22 @@ double: 1
 idouble: 1
 
 # cabs
-Test "cabs (-0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-0.7 - 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 - 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 + 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 + 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 - 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 - 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508":
+Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "cabs (0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
@@ -161,7 +161,7 @@ double: 1
 idouble: 1
 
 # cexp
-Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 float: 1
 ifloat: 1
 Test "Real part of: cexp (0.7 + 1.2 i) == 0.7296989091503236012 + 1.8768962328348102821 i":
@@ -291,18 +291,18 @@ float: 1
 ifloat: 1
 
 # csqrt
-Test "Real part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Real part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 float: 1
 ifloat: 1
 
@@ -400,31 +400,31 @@ idouble: 2
 ifloat: 1
 
 # hypot
-Test "hypot (-0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, 1.2) == 1.3892443989449804508":
+Test "hypot (0.7, 1.2) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "hypot (0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
diff --git a/sysdeps/powerpc/fpu/libm-test-ulps b/sysdeps/powerpc/fpu/libm-test-ulps
index ec48a24bfd..499388d925 100644
--- a/sysdeps/powerpc/fpu/libm-test-ulps
+++ b/sysdeps/powerpc/fpu/libm-test-ulps
@@ -19,22 +19,22 @@ double: 1
 idouble: 1
 
 # cabs
-Test "cabs (-0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-0.7 - 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 - 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 + 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 + 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 - 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 - 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508":
+Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "cabs (0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
@@ -160,7 +160,7 @@ double: 1
 idouble: 1
 
 # cexp
-Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 float: 1
 ifloat: 1
 Test "Real part of: cexp (0.7 + 1.2 i) == 0.72969890915032360123451688642930727 + 1.8768962328348102821139467908203072 i":
@@ -290,18 +290,18 @@ float: 1
 ifloat: 1
 
 # csqrt
-Test "Real part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Real part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 float: 1
 ifloat: 1
 
@@ -399,31 +399,31 @@ idouble: 2
 ifloat: 1
 
 # hypot
-Test "hypot (-0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, 1.2) == 1.3892443989449804508":
+Test "hypot (0.7, 1.2) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "hypot (0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
diff --git a/sysdeps/s390/fpu/libm-test-ulps b/sysdeps/s390/fpu/libm-test-ulps
index 78f4f26639..cdb4d27bf6 100644
--- a/sysdeps/s390/fpu/libm-test-ulps
+++ b/sysdeps/s390/fpu/libm-test-ulps
@@ -24,22 +24,22 @@ double: 1
 idouble: 1
 
 # cabs
-Test "cabs (-0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-0.7 - 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 - 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 + 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 + 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 - 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 - 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508":
+Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "cabs (0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
@@ -166,7 +166,7 @@ double: 1
 idouble: 1
 
 # cexp
-Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 float: 1
 ifloat: 1
 Test "Real part of: cexp (0.7 + 1.2 i) == 0.7296989091503236012 + 1.8768962328348102821 i":
@@ -309,18 +309,18 @@ float: 1
 ifloat: 1
 
 # csqrt
-Test "Real part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Real part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 float: 1
 ifloat: 1
 
@@ -421,31 +421,31 @@ idouble: 2
 ifloat: 1
 
 # hypot
-Test "hypot (-0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, 1.2) == 1.3892443989449804508":
+Test "hypot (0.7, 1.2) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "hypot (0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
diff --git a/sysdeps/sh/sh4/fpu/libm-test-ulps b/sysdeps/sh/sh4/fpu/libm-test-ulps
index 4737025991..aad54b3034 100644
--- a/sysdeps/sh/sh4/fpu/libm-test-ulps
+++ b/sysdeps/sh/sh4/fpu/libm-test-ulps
@@ -19,22 +19,22 @@ double: 1
 idouble: 1
 
 # cabs
-Test "cabs (-0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-0.7 - 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 - 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 + 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 + 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 - 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 - 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508":
+Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "cabs (0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
@@ -161,7 +161,7 @@ double: 1
 idouble: 1
 
 # cexp
-Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 float: 1
 ifloat: 1
 Test "Real part of: cexp (0.7 + 1.2 i) == 0.7296989091503236012 + 1.8768962328348102821 i":
@@ -291,18 +291,18 @@ float: 1
 ifloat: 1
 
 # csqrt
-Test "Real part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Real part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 float: 1
 ifloat: 1
 
@@ -400,31 +400,31 @@ idouble: 2
 ifloat: 1
 
 # hypot
-Test "hypot (-0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, 1.2) == 1.3892443989449804508":
+Test "hypot (0.7, 1.2) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "hypot (0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
diff --git a/sysdeps/sparc/sparc32/fpu/libm-test-ulps b/sysdeps/sparc/sparc32/fpu/libm-test-ulps
index d8c25ccd1d..d2e75ece6f 100644
--- a/sysdeps/sparc/sparc32/fpu/libm-test-ulps
+++ b/sysdeps/sparc/sparc32/fpu/libm-test-ulps
@@ -19,22 +19,22 @@ double: 1
 idouble: 1
 
 # cabs
-Test "cabs (-0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-0.7 - 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 - 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 + 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 + 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 - 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 - 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508":
+Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "cabs (0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
@@ -161,7 +161,7 @@ double: 1
 idouble: 1
 
 # cexp
-Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 float: 1
 ifloat: 1
 Test "Real part of: cexp (0.7 + 1.2 i) == 0.72969890915032360123451688642930727 + 1.8768962328348102821139467908203072 i":
@@ -291,18 +291,18 @@ float: 1
 ifloat: 1
 
 # csqrt
-Test "Real part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Real part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 float: 1
 ifloat: 1
 
@@ -400,31 +400,31 @@ idouble: 2
 ifloat: 1
 
 # hypot
-Test "hypot (-0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, 1.2) == 1.3892443989449804508":
+Test "hypot (0.7, 1.2) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "hypot (0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
diff --git a/sysdeps/sparc/sparc64/fpu/libm-test-ulps b/sysdeps/sparc/sparc64/fpu/libm-test-ulps
index 2af728f305..4cbed26743 100644
--- a/sysdeps/sparc/sparc64/fpu/libm-test-ulps
+++ b/sysdeps/sparc/sparc64/fpu/libm-test-ulps
@@ -19,22 +19,22 @@ double: 1
 idouble: 1
 
 # cabs
-Test "cabs (-0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-0.7 - 12.4 i) == 12.41974234837422060118":
+Test "cabs (-0.7 - 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 + 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 + 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (-12.4 - 0.7 i) == 12.41974234837422060118":
+Test "cabs (-12.4 - 0.7 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508":
+Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "cabs (0.7 + 12.4 i) == 12.41974234837422060118":
+Test "cabs (0.7 + 12.4 i) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
@@ -161,9 +161,14 @@ double: 1
 idouble: 1
 
 # cexp
-Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
+Test "Real part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
 float: 1
 ifloat: 1
+ildouble: 1
+ldouble: 1
 Test "Real part of: cexp (0.7 + 1.2 i) == 0.72969890915032360123451688642930727 + 1.8768962328348102821139467908203072 i":
 double: 1
 float: 1
@@ -330,20 +335,26 @@ float: 1
 ifloat: 1
 
 # csqrt
-Test "Real part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
+Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
+ildouble: 1
+ldouble: 1
+Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
 float: 1
 ifloat: 1
-Test "Real part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+ildouble: 1
+ldouble: 1
+Test "Real part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
+Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
 float: 1
 ifloat: 1
+ildouble: 1
+ldouble: 1
 
 # ctan
 Test "Real part of: ctan (-2 - 3 i) == 0.0037640256415042482 - 1.0032386273536098014 i":
@@ -453,31 +464,31 @@ ildouble: 2
 ldouble: 2
 
 # hypot
-Test "hypot (-0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (-12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, -12.4) == 12.41974234837422060118":
+Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (0.7, 1.2) == 1.3892443989449804508":
+Test "hypot (0.7, 1.2) == 1.3892443989449804508432547041028554":
 double: 1
 idouble: 1
-Test "hypot (0.7, 12.4) == 12.41974234837422060118":
+Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, -0.7) == 12.41974234837422060118":
+Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
-Test "hypot (12.4, 0.7) == 12.41974234837422060118":
+Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
 ifloat: 1
 
@@ -937,10 +948,14 @@ double: 1
 float: 1
 idouble: 1
 ifloat: 1
+ildouble: 1
+ldouble: 1
 
 Function: Imaginary part of "cexp":
 float: 1
 ifloat: 1
+ildouble: 1
+ldouble: 1
 
 Function: Imaginary part of "clog":
 double: 1
@@ -999,10 +1014,14 @@ double: 1
 float: 1
 idouble: 1
 ifloat: 1
+ildouble: 1
+ldouble: 1
 
 Function: Imaginary part of "csqrt":
 float: 1
 ifloat: 1
+ildouble: 1
+ldouble: 1
 
 Function: Real part of "ctan":
 double: 1