This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
A patch for sysdeps/i386/fpu/libm-test-ulps
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: A patch for sysdeps/i386/fpu/libm-test-ulps
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Thu, 30 Nov 2000 14:16:11 -0800
"gcc -Os" under RedHat 7.0 generates different math results. Here is
the update for sysdeps/i386/fpu/libm-test-ulps.
--
H.J. Lu (hjl@valinux.com)
--
2000-11-30 H.J. Lu <hjl@gnu.org>
* sysdeps/i386/fpu/libm-test-ulps: Updated for -Os.
Index: sysdeps/i386/fpu/libm-test-ulps
===================================================================
RCS file: /work/cvs/gnu/glibc/sysdeps/i386/fpu/libm-test-ulps,v
retrieving revision 1.1.1.7
diff -u -p -r1.1.1.7 libm-test-ulps
--- sysdeps/i386/fpu/libm-test-ulps 2000/11/28 19:56:54 1.1.1.7
+++ sysdeps/i386/fpu/libm-test-ulps 2000/11/30 22:10:35
@@ -13,6 +13,7 @@ ildouble: 1
# asin
Test "asin (0.7) == 0.77539749661075306374035335271498708":
double: 1
+idouble: 1
ildouble: 1147
ldouble: 1147
@@ -84,9 +85,9 @@ ldouble: 329
# cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323 + 2.1414491111159960199 i":
double: 1
-float: 4
+float: 7
idouble: 1
-ifloat: 4
+ifloat: 7
ildouble: 5
ldouble: 5
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323 + 2.1414491111159960199 i":
@@ -125,16 +126,16 @@ ldouble: 329
# casinh
Test "Real part of: casinh (-2 - 3 i) == -1.9686379257930962917 - 0.9646585044076027920 i":
-double: 5
+double: 6
float: 1
-idouble: 5
+idouble: 6
ifloat: 1
ildouble: 6
ldouble: 6
Test "Imaginary part of: casinh (-2 - 3 i) == -1.9686379257930962917 - 0.9646585044076027920 i":
-double: 3
+double: 13
float: 6
-idouble: 3
+idouble: 13
ifloat: 6
ildouble: 6
ldouble: 6
@@ -336,13 +337,15 @@ Test "Real part of: clog10 (0.7 + 1.2 i)
double: 2
float: 1
idouble: 2
-ifloat: 1
ildouble: 1403
+ifloat: 1
ldouble: 1403
Test "Imaginary part of: clog10 (0.7 + 1.2 i) == 0.1427786545038868803 + 0.4528483579352493248 i":
double: 1
+float: 1
idouble: 1
ildouble: 186
+ifloat: 1
ldouble: 186
Test "Real part of: clog10 (3 + inf i) == inf + pi/2*log10(e) i":
Test "Imaginary part of: clog10 (3 + inf i) == inf + pi/2*log10(e) i":
@@ -463,7 +466,9 @@ ldouble: 1
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
+float: 1
idouble: 1
+ifloat: 1
ildouble: 237
ldouble: 237
Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.022067610030026450706487883081139 + 0.58704531296356521154977678719838035 i":
@@ -603,38 +608,47 @@ idouble: 1
Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
float: 1
ildouble: 406
+ifloat: 1
ldouble: 406
Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
float: 1
ildouble: 406
+ifloat: 1
ldouble: 406
Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
float: 1
ildouble: 406
+ifloat: 1
ldouble: 406
Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
float: 1
ildouble: 406
+ifloat: 1
ldouble: 406
Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
float: 1
ildouble: 406
+ifloat: 1
ldouble: 406
Test "hypot (0.7, 1.2) == 1.3892443989449804508432547041028554":
double: 1
+idouble: 1
ildouble: 560
ldouble: 560
Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
float: 1
ildouble: 406
+ifloat: 1
ldouble: 406
Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
float: 1
ildouble: 406
+ifloat: 1
ldouble: 406
Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
float: 1
ildouble: 406
+ifloat: 1
ldouble: 406
# j0
@@ -1037,8 +1051,8 @@ float: 1
idouble: 1
ifloat: 1
Test "yn (3, 0.7) == -15.819479052819633505":
-double: 2
-idouble: 2
+double: 3
+idouble: 3
Test "yn (3, 2.0) == -1.1277837768404277861":
float: 1
ifloat: 1
@@ -1061,6 +1075,7 @@ ldouble: 1
Function: "asin":
double: 1
+idouble: 1
ildouble: 1147
ldouble: 1147
@@ -1106,9 +1121,9 @@ ldouble: 329
Function: Real part of "cacosh":
double: 1
-float: 4
+float: 7
idouble: 1
-ifloat: 4
+ifloat: 7
ildouble: 328
ldouble: 328
@@ -1135,17 +1150,17 @@ ildouble: 329
ldouble: 329
Function: Real part of "casinh":
-double: 5
+double: 6
float: 1
-idouble: 5
+idouble: 6
ifloat: 1
ildouble: 892
ldouble: 892
Function: Imaginary part of "casinh":
-double: 3
+double: 13
float: 6
-idouble: 3
+idouble: 13
ifloat: 6
ildouble: 12
ldouble: 12
@@ -1298,7 +1313,9 @@ ldouble: 477
Function: Real part of "csqrt":
double: 1
+float: 1
idouble: 1
+ifloat: 1
ildouble: 237
ldouble: 237
@@ -1375,7 +1392,9 @@ idouble: 1
Function: "hypot":
double: 1
float: 1
+idouble: 1
ildouble: 560
+ifloat: 1
ldouble: 560
Function: "j0":