r1095 - trunk/glibc

ken at linuxfromscratch.org ken at linuxfromscratch.org
Mon Sep 5 14:22:41 PDT 2005


Author: ken
Date: 2005-09-05 15:22:40 -0600 (Mon, 05 Sep 2005)
New Revision: 1095

Added:
   trunk/glibc/glibc-2.3.5-gcc4_fix_math_tests-1.patch
Log:
add patch to fix some of the glibc math tests on x86

Added: trunk/glibc/glibc-2.3.5-gcc4_fix_math_tests-1.patch
===================================================================
--- trunk/glibc/glibc-2.3.5-gcc4_fix_math_tests-1.patch	2005-09-05 09:54:27 UTC (rev 1094)
+++ trunk/glibc/glibc-2.3.5-gcc4_fix_math_tests-1.patch	2005-09-05 21:22:40 UTC (rev 1095)
@@ -0,0 +1,453 @@
+Submitted By: Ken Moffat <ken at linuxfromscratch.org>
+Date: 2005-09-05
+Initial Package Version: 2.3.5
+Upstream Status: from glibc cvs
+Origin: http://sources.redhat.com/ml/glibc-cvs/2005-q2/msg00239.html
+Description: Fixes the expected results for some of the math tests when compiled with gcc4
+
+Thanks to Greg Schafer for the URL.
+
+diff -u -r1.41 -r1.42
+--- libc/sysdeps/i386/fpu/libm-test-ulps	2004/07/01 01:43:14	1.41
++++ libc/sysdeps/i386/fpu/libm-test-ulps	2005/05/04 06:18:25	1.42
+@@ -7,20 +7,20 @@
+ 
+ # asin
+ Test "asin (-0.5) == -pi/6":
+-ldouble: 1
+ ildouble: 1
+-Test "asin (-1.0) == -pi/2":
+ ldouble: 1
++Test "asin (-1.0) == -pi/2":
+ ildouble: 1
+-Test "asin (0.5) == pi/6":
+ ldouble: 1
++Test "asin (0.5) == pi/6":
+ ildouble: 1
+-Test "asin (0.75) == 0.848062078981481008052944338998418080":
+ ldouble: 1
++Test "asin (0.75) == 0.848062078981481008052944338998418080":
+ ildouble: 1
+-Test "asin (1.0) == pi/2":
+ ldouble: 1
++Test "asin (1.0) == pi/2":
+ ildouble: 1
++ldouble: 1
+ 
+ # atanh
+ Test "atanh (0.75) == 0.972955074527656652552676371721589865":
+@@ -44,11 +44,11 @@
+ ldouble: 6
+ Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i":
+ double: 1
++float: 4
+ idouble: 1
++ifloat: 4
+ ildouble: 1
+ ldouble: 1
+-ifloat: 4
+-float: 4
+ Test "Real part of: cacosh (0.75 + 1.25 i) == 1.13239363160530819522266333696834467 + 1.11752014915610270578240049553777969 i":
+ ildouble: 1
+ ldouble: 1
+@@ -473,24 +473,26 @@
+ # j0
+ Test "j0 (-4.0) == -3.9714980986384737228659076845169804197562E-1":
+ double: 1
+-float: 1
++float: 2
+ idouble: 1
+-ifloat: 1
++ifloat: 2
+ ildouble: 1
+ ldouble: 1
+ Test "j0 (10.0) == -0.245935764451348335197760862485328754":
+-double: 1
++double: 3
+ float: 1
+-idouble: 1
++idouble: 3
+ ifloat: 1
+ Test "j0 (2.0) == 0.223890779141235668051827454649948626":
++double: 1
+ float: 1
++idouble: 1
+ ifloat: 1
+ Test "j0 (4.0) == -3.9714980986384737228659076845169804197562E-1":
+ double: 1
+-float: 1
++float: 2
+ idouble: 1
+-ifloat: 1
++ifloat: 2
+ ildouble: 1
+ ldouble: 1
+ Test "j0 (8.0) == 0.171650807137553906090869407851972001":
+@@ -498,22 +500,21 @@
+ ifloat: 1
+ 
+ # j1
++Test "j1 (0.75) == 0.349243602174862192523281016426251335":
++double: 1
++idouble: 1
+ Test "j1 (10.0) == 0.0434727461688614366697487680258592883":
+ float: 1
+ ifloat: 1
+ ildouble: 1
+ ldouble: 1
+-Test "j1 (0.75) == 0.349243602174862192523281016426251335":
+-double: 1
+-idouble: 1
+ Test "j1 (2.0) == 0.576724807756873387202448242269137087":
+ double: 1
+ idouble: 1
+-Test "j1 (0.75) == 0.349243602174862192523281016426251335":
+-double: 1
+-idouble: 1
+ Test "j1 (8.0) == 0.234636346853914624381276651590454612":
++double: 1
+ float: 1
++idouble: 1
+ ifloat: 1
+ ildouble: 1
+ ldouble: 1
+@@ -521,24 +522,26 @@
+ # jn
+ Test "jn (0, -4.0) == -3.9714980986384737228659076845169804197562E-1":
+ double: 1
+-float: 1
++float: 2
+ idouble: 1
+-ifloat: 1
++ifloat: 2
+ ildouble: 1
+ ldouble: 1
+ Test "jn (0, 10.0) == -0.245935764451348335197760862485328754":
+-double: 1
++double: 3
+ float: 1
+-idouble: 1
++idouble: 3
+ ifloat: 1
+ Test "jn (0, 2.0) == 0.223890779141235668051827454649948626":
++double: 1
+ float: 1
++idouble: 1
+ ifloat: 1
+ Test "jn (0, 4.0) == -3.9714980986384737228659076845169804197562E-1":
+ double: 1
+-float: 1
++float: 2
+ idouble: 1
+-ifloat: 1
++ifloat: 2
+ ildouble: 1
+ ldouble: 1
+ Test "jn (0, 8.0) == 0.171650807137553906090869407851972001":
+@@ -556,22 +559,24 @@
+ double: 1
+ idouble: 1
+ Test "jn (1, 8.0) == 0.234636346853914624381276651590454612":
++double: 1
+ float: 1
++idouble: 1
+ ifloat: 1
+ ildouble: 1
+ ldouble: 1
+ Test "jn (10, -1.0) == 0.263061512368745320699785368779050294e-9":
+ double: 1
++float: 1
+ idouble: 1
++ifloat: 1
+ ildouble: 1
+ ldouble: 1
+-ifloat: 1
+-float: 1
+ Test "jn (10, 0.125) == 0.250543369809369890173993791865771547e-18":
+-float: 1
+-ifloat: 1
+ double: 1
++float: 1
+ idouble: 1
++ifloat: 1
+ Test "jn (10, 0.75) == 0.149621713117596814698712483621682835e-10":
+ float: 1
+ ifloat: 1
+@@ -579,46 +584,46 @@
+ ldouble: 2
+ Test "jn (10, 1.0) == 0.263061512368745320699785368779050294e-9":
+ double: 1
++float: 1
+ idouble: 1
++ifloat: 1
+ ildouble: 1
+ ldouble: 1
+-ifloat: 1
+-float: 1
+ Test "jn (10, 10.0) == 0.207486106633358857697278723518753428":
+-double: 2
++double: 5
+ float: 2
+-idouble: 2
++idouble: 5
+ ifloat: 2
+ ildouble: 2
+ ldouble: 2
+ Test "jn (10, 2.0) == 0.251538628271673670963516093751820639e-6":
++double: 2
++idouble: 2
+ ildouble: 1
+ ldouble: 1
+-idouble: 2
+-double: 2
+ Test "jn (3, -1.0) == -0.0195633539826684059189053216217515083":
+ ildouble: 1
+ ldouble: 1
+ Test "jn (3, 0.75) == 0.848438342327410884392755236884386804e-2":
+-float: 1
+-ifloat: 1
+ double: 1
++float: 1
+ idouble: 1
++ifloat: 1
+ Test "jn (3, 1.0) == 0.0195633539826684059189053216217515083":
+ ildouble: 1
+ ldouble: 1
+ Test "jn (3, 10.0) == 0.0583793793051868123429354784103409563":
+-double: 1
++double: 5
+ float: 2
+-idouble: 1
++idouble: 5
+ ifloat: 2
+ ildouble: 1
+ ldouble: 1
+ Test "jn (3, 2.0) == 0.128943249474402051098793332969239835":
+-ildouble: 1
+-ldouble: 1
+ double: 1
+ idouble: 1
++ildouble: 1
++ldouble: 1
+ 
+ # lgamma
+ Test "lgamma (-0.5) == log(2*sqrt(pi))":
+@@ -627,10 +632,10 @@
+ ildouble: 1
+ ldouble: 1
+ Test "lgamma (0.7) == 0.260867246531666514385732417016759578":
+-float: 1
+-ifloat: 1
+ double: 1
++float: 1
+ idouble: 1
++ifloat: 1
+ Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1":
+ double: 1
+ float: 2
+@@ -714,32 +719,39 @@
+ idouble: 1
+ ifloat: 1
+ Test "y0 (1.0) == 0.0882569642156769579829267660235151628":
++double: 2
++float: 1
++idouble: 2
++ifloat: 1
+ ildouble: 1
+ ldouble: 1
+-ifloat: 1
++Test "y0 (1.5) == 0.382448923797758843955068554978089862":
++double: 1
+ float: 1
+-double: 2
+-idouble: 2
++idouble: 1
++ifloat: 1
+ Test "y0 (10.0) == 0.0556711672835993914244598774101900481":
++double: 1
+ float: 1
++idouble: 1
+ ifloat: 1
+ ildouble: 1
+ ldouble: 1
+ Test "y0 (8.0) == 0.223521489387566220527323400498620359":
++double: 1
+ float: 1
++idouble: 1
+ ifloat: 1
+ ildouble: 1
+ ldouble: 1
+-Test "y0 (1.5) == 0.382448923797758843955068554978089862":
+-float: 1
+-ifloat: 1
+-double: 1
+-idouble: 1
+ 
+ # y1
+ Test "y1 (0.125) == -5.19993611253477499595928744876579921":
+ ildouble: 1
+ ldouble: 1
++Test "y1 (1.0) == -0.781212821300288716547150000047964821":
++double: 1
++idouble: 1
+ Test "y1 (10.0) == 0.249015424206953883923283474663222803":
+ double: 2
+ float: 2
+@@ -753,13 +765,12 @@
+ ildouble: 1
+ ldouble: 1
+ Test "y1 (8.0) == -0.158060461731247494255555266187483550":
++double: 1
+ float: 2
++idouble: 1
+ ifloat: 2
+ ildouble: 1
+ ldouble: 1
+-Test "y1 (1.0) == -0.781212821300288716547150000047964821":
+-double: 1
+-idouble: 1
+ 
+ # yn
+ Test "yn (0, 0.125) == -1.38968062514384052915582277745018693":
+@@ -771,24 +782,28 @@
+ idouble: 1
+ ifloat: 1
+ Test "yn (0, 1.0) == 0.0882569642156769579829267660235151628":
+-ildouble: 1
+-ldouble: 1
+-ifloat: 1
+-float: 1
+ double: 2
++float: 1
+ idouble: 2
+-Test "yn (0, 1.5) == 0.382448923797758843955068554978089862":
+ ifloat: 1
+-float: 1
++ildouble: 1
++ldouble: 1
++Test "yn (0, 1.5) == 0.382448923797758843955068554978089862":
+ double: 1
++float: 1
+ idouble: 1
++ifloat: 1
+ Test "yn (0, 10.0) == 0.0556711672835993914244598774101900481":
++double: 1
+ float: 1
++idouble: 1
+ ifloat: 1
+ ildouble: 1
+ ldouble: 1
+ Test "yn (0, 8.0) == 0.223521489387566220527323400498620359":
++double: 1
+ float: 1
++idouble: 1
+ ifloat: 1
+ ildouble: 1
+ ldouble: 1
+@@ -796,8 +811,8 @@
+ ildouble: 1
+ ldouble: 1
+ Test "yn (1, 1.0) == -0.781212821300288716547150000047964821":
+-idouble: 1
+ double: 1
++idouble: 1
+ Test "yn (1, 10.0) == 0.249015424206953883923283474663222803":
+ double: 2
+ float: 2
+@@ -811,13 +826,12 @@
+ ildouble: 1
+ ldouble: 1
+ Test "yn (1, 8.0) == -0.158060461731247494255555266187483550":
++double: 1
+ float: 2
++idouble: 1
+ ifloat: 2
+ ildouble: 1
+ ldouble: 1
+-Test "yn (3, 0.75) == -12.9877176234475433186319774484809207":
+-ifloat: 1
+-float: 1
+ Test "yn (10, 0.125) == -127057845771019398.252538486899753195":
+ double: 1
+ float: 1
+@@ -841,10 +855,10 @@
+ idouble: 1
+ ifloat: 3
+ Test "yn (10, 2.0) == -129184.542208039282635913145923304214":
+-float: 3
+-ifloat: 3
+ double: 2
++float: 3
+ idouble: 2
++ifloat: 3
+ Test "yn (3, 0.125) == -2612.69757350066712600220955744091741":
+ ildouble: 1
+ ldouble: 1
+@@ -855,12 +869,12 @@
+ ifloat: 1
+ ildouble: 2
+ ldouble: 2
+-Test "yn (3, 2.0) == -1.12778377684042778608158395773179238":
+-float: 1
+-ifloat: 1
++Test "yn (3, 10.0) == -0.251362657183837329779204747654240998":
+ double: 1
++float: 1
+ idouble: 1
+-Test "yn (3, 10.0) == -0.251362657183837329779204747654240998":
++ifloat: 1
++Test "yn (3, 2.0) == -1.12778377684042778608158395773179238":
+ double: 1
+ float: 1
+ idouble: 1
+@@ -872,8 +886,8 @@
+ ldouble: 622
+ 
+ Function: "asin":
+-ldouble: 1
+ ildouble: 1
++ldouble: 1
+ 
+ Function: "atanh":
+ ildouble: 2
+@@ -895,11 +909,11 @@
+ 
+ Function: Imaginary part of "cacosh":
+ double: 1
++float: 4
+ idouble: 1
++ifloat: 4
+ ildouble: 1
+ ldouble: 1
+-ifloat: 4
+-float: 4
+ 
+ Function: Real part of "casin":
+ double: 1
+@@ -1115,10 +1129,10 @@
+ float: 1
+ 
+ Function: "j0":
+-double: 1
+-float: 1
+-idouble: 1
+-ifloat: 1
++double: 3
++float: 2
++idouble: 3
++ifloat: 2
+ ildouble: 1
+ ldouble: 1
+ 
+@@ -1131,9 +1145,9 @@
+ ldouble: 1
+ 
+ Function: "jn":
+-double: 2
++double: 5
+ float: 2
+-idouble: 2
++idouble: 5
+ ifloat: 2
+ ildouble: 2
+ ldouble: 2




More information about the patches mailing list