[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commits] r18895 - in /fsf/trunk/ports: ./ sysdeps/alpha/ sysdeps/alpha/fpu/ sysdeps/mips/mips64/n32/ sysdeps/mips/mips64/n64/ sysdeps...



Author: eglibc
Date: Fri Jun  1 21:23:38 2012
New Revision: 18895

Log:
Import glibc-ports-mainline for 2012-06-01

Added:
    fsf/trunk/ports/sysdeps/mips/mips64/n32/s_fma.c
    fsf/trunk/ports/sysdeps/mips/mips64/n64/s_fma.c
Modified:
    fsf/trunk/ports/ChangeLog.alpha
    fsf/trunk/ports/ChangeLog.mips
    fsf/trunk/ports/sysdeps/alpha/Makefile
    fsf/trunk/ports/sysdeps/alpha/fpu/libm-test-ulps
    fsf/trunk/ports/sysdeps/unix/sysv/linux/mips/Makefile

Modified: fsf/trunk/ports/ChangeLog.alpha
==============================================================================
--- fsf/trunk/ports/ChangeLog.alpha (original)
+++ fsf/trunk/ports/ChangeLog.alpha Fri Jun  1 21:23:38 2012
@@ -1,3 +1,9 @@
+2012-06-01  Richard Henderson  <rth@xxxxxxxxxxx>
+
+	* sysdeps/alpha/Makefile (CFLAGS-test-misc.c): Set -mieee-with-inexact.
+
+	* sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
+
 2012-05-30  Richard Henderson  <rth@xxxxxxxxxxx>
 
 	* sysdeps/alpha/Makefile (CFLAGS-s_fma.c): Set -mieee-with-inexact.

Modified: fsf/trunk/ports/ChangeLog.mips
==============================================================================
--- fsf/trunk/ports/ChangeLog.mips (original)
+++ fsf/trunk/ports/ChangeLog.mips Fri Jun  1 21:23:38 2012
@@ -1,3 +1,11 @@
+2012-06-01  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	* sysdeps/mips/mips64/n32/s_fma.c: New file.
+	* sysdeps/mips/mips64/n64/s_fma.c: Likewise.
+
+	* sysdeps/unix/sysv/linux/mips/Makefile (abi-n32-condition): Fix
+	typo.
+
 2012-05-31  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	* sysdeps/mips/mips64/libm-test-ulps: Remove sqrt ulps.

Modified: fsf/trunk/ports/sysdeps/alpha/Makefile
==============================================================================
--- fsf/trunk/ports/sysdeps/alpha/Makefile (original)
+++ fsf/trunk/ports/sysdeps/alpha/Makefile Fri Jun  1 21:23:38 2012
@@ -41,6 +41,8 @@
 # The fma routines rely on inexact being raised for correct results.
 CFLAGS-s_fma.c = -mieee-with-inexact
 CFLAGS-s_fmaf.c = -mieee-with-inexact
+# This test tries to check for inexact being raised by arithmetic.
+CFLAGS-test-misc.c += -mieee-with-inexact
 endif
 
 # Build everything with full IEEE math support, and with dynamic rounding;

Modified: fsf/trunk/ports/sysdeps/alpha/fpu/libm-test-ulps
==============================================================================
--- fsf/trunk/ports/sysdeps/alpha/fpu/libm-test-ulps (original)
+++ fsf/trunk/ports/sysdeps/alpha/fpu/libm-test-ulps Fri Jun  1 21:23:38 2012
@@ -964,8 +964,6 @@
 Test "cos (M_PI_6l * 2.0) == 0.5":
 double: 1
 idouble: 1
-ildouble: 1
-ldouble: 1
 Test "cos (M_PI_6l * 4.0) == -0.5":
 double: 2
 float: 1
@@ -1138,9 +1136,6 @@
 ildouble: 4
 ldouble: 4
 Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 0.0 i) == 0.75 + 1.25 i":
-ildouble: 2
-ldouble: 2
-Test "Imaginary part of: cpow (0.75 + 1.25 i, 1.0 + 0.0 i) == 0.75 + 1.25 i":
 ildouble: 1
 ldouble: 1
 Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 1.0 i) == 0.0846958290317209430433805274189191353 + 0.513285749182902449043287190519090481 i":
@@ -1148,8 +1143,8 @@
 float: 3
 idouble: 2
 ifloat: 3
-ildouble: 10
-ldouble: 10
+ildouble: 11
+ldouble: 11
 Test "Real part of: cpow (2 + 0 i, 10 + 0 i) == 1024.0 + 0.0 i":
 ildouble: 2
 ldouble: 2
@@ -1158,8 +1153,8 @@
 float: 4
 idouble: 1
 ifloat: 4
-ildouble: 3
-ldouble: 3
+ildouble: 2
+ldouble: 2
 Test "Imaginary part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i":
 float: 2
 ifloat: 2
@@ -1380,8 +1375,6 @@
 Test "Real part of: ctan (-2 - 3 i) == 0.376402564150424829275122113032269084e-2 - 1.00323862735360980144635859782192726 i":
 float: 1
 ifloat: 1
-ildouble: 1
-ldouble: 1
 Test "Imaginary part of: ctan (-2 - 3 i) == 0.376402564150424829275122113032269084e-2 - 1.00323862735360980144635859782192726 i":
 double: 1
 idouble: 1
@@ -1436,18 +1429,14 @@
 # ctanh
 Test "Real part of: ctanh (-2 - 3 i) == -0.965385879022133124278480269394560686 + 0.988437503832249372031403430350121098e-2 i":
 double: 1
-float: 2
-idouble: 1
-ifloat: 2
-ildouble: 1
-ldouble: 1
+float: 1
+idouble: 1
+ifloat: 1
 Test "Imaginary part of: ctanh (-2 - 3 i) == -0.965385879022133124278480269394560686 + 0.988437503832249372031403430350121098e-2 i":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 1
-ldouble: 1
 Test "Imaginary part of: ctanh (0 + 0x3.243f6cp-1 i) == 0.0 - 2.287733242885645987394874673945769518150e7 i":
 float: 1
 ifloat: 1
@@ -1530,10 +1519,8 @@
 
 # exp10
 Test "exp10 (-1) == 0.1":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
+double: 1
+idouble: 1
 Test "exp10 (-305) == 1.0e-305":
 double: 1
 idouble: 1
@@ -1542,18 +1529,9 @@
 idouble: 1
 ildouble: 1
 ldouble: 1
-Test "exp10 (0.75) == 5.62341325190349080394951039776481231":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
 Test "exp10 (3) == 1000":
-double: 6
-float: 2
-idouble: 6
-ifloat: 2
-ildouble: 1
-ldouble: 1
+double: 1
+idouble: 1
 Test "exp10 (36) == 1.0e36":
 double: 1
 idouble: 1
@@ -1562,9 +1540,6 @@
 ldouble: 1
 
 # exp2
-Test "exp2 (10) == 1024":
-ildouble: 2
-ldouble: 2
 Test "exp2 (100.5) == 1.792728671193156477399422023278661496394e+30":
 ildouble: 1
 ldouble: 1
@@ -1802,9 +1777,9 @@
 ldouble: 2
 Test "jn (10, 2.0) == 0.251538628271673670963516093751820639e-6":
 double: 1
-float: 4
-idouble: 1
-ifloat: 4
+float: 2
+idouble: 1
+ifloat: 2
 Test "jn (2, 0x1.ffff62p+99) == -4.43860668048170034334926693188979974489e-16":
 double: 2
 float: 2
@@ -1835,10 +1810,8 @@
 ildouble: 2
 ldouble: 2
 Test "jn (3, 2.0) == 0.128943249474402051098793332969239835":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
+float: 1
+ifloat: 1
 Test "jn (3, 2.4048255576957729) == 0.19899990535769083404042146764530813":
 double: 3
 idouble: 3
@@ -2056,15 +2029,11 @@
 Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.5 in cos_res":
 double: 1
 idouble: 1
-ildouble: 1
-ldouble: 1
 Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in sin_res":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 1
-ldouble: 1
 Test "sincos (pi/6, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in cos_res":
 float: 1
 ifloat: 1
@@ -2109,11 +2078,6 @@
 ildouble: 1
 ldouble: 1
 Test "sinh_upward (24) == 13244561064.92173614705070540368454568168":
-ildouble: 1
-ldouble: 1
-
-# sqrt
-Test "sqrt (2) == M_SQRT2l":
 ildouble: 1
 ldouble: 1
 
@@ -2474,8 +2438,8 @@
 float: 1
 idouble: 2
 ifloat: 1
-ildouble: 1
-ldouble: 1
+ildouble: 3
+ldouble: 3
 
 Function: Real part of "cacosh":
 double: 1
@@ -2504,8 +2468,8 @@
 float: 1
 idouble: 2
 ifloat: 1
-ildouble: 1
-ldouble: 1
+ildouble: 3
+ldouble: 3
 
 Function: Real part of "casinh":
 double: 5
@@ -2589,9 +2553,9 @@
 
 Function: Imaginary part of "cexp":
 double: 1
-float: 1
-idouble: 1
-ifloat: 1
+float: 2
+idouble: 1
+ifloat: 2
 ildouble: 1
 ldouble: 1
 
@@ -2674,8 +2638,8 @@
 float: 4
 idouble: 2
 ifloat: 4
-ildouble: 10
-ldouble: 10
+ildouble: 11
+ldouble: 11
 
 Function: Imaginary part of "cpow":
 double: 2
@@ -2732,8 +2696,8 @@
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 2
 
 Function: Imaginary part of "ctan":
 double: 1
@@ -2743,19 +2707,19 @@
 
 Function: Real part of "ctanh":
 double: 1
+float: 1
+idouble: 1
+ifloat: 1
+ildouble: 2
+ldouble: 2
+
+Function: Imaginary part of "ctanh":
+double: 1
 float: 2
 idouble: 1
 ifloat: 2
-ildouble: 1
-ldouble: 1
-
-Function: Imaginary part of "ctanh":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 2
 
 Function: "erf":
 double: 1
@@ -2770,16 +2734,14 @@
 ldouble: 1
 
 Function: "exp10":
-double: 6
-float: 2
-idouble: 6
-ifloat: 2
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
 Function: "exp2":
-ildouble: 2
-ldouble: 2
+ildouble: 1
+ldouble: 1
 
 Function: "exp_downward":
 float: 1
@@ -2806,10 +2768,6 @@
 ifloat: 1
 ildouble: 1
 ldouble: 1
-
-Function: "fma":
-double: 1
-idouble: 1
 
 Function: "gamma":
 ildouble: 1
@@ -2837,11 +2795,11 @@
 
 Function: "jn":
 double: 4
-float: 4
+float: 5
 idouble: 4
-ifloat: 4
-ildouble: 4
-ldouble: 4
+ifloat: 5
+ildouble: 8
+ldouble: 8
 
 Function: "lgamma":
 double: 1
@@ -2932,10 +2890,6 @@
 ldouble: 2
 
 Function: "sinh_upward":
-ildouble: 1
-ldouble: 1
-
-Function: "sqrt":
 ildouble: 1
 ldouble: 1
 

Added: fsf/trunk/ports/sysdeps/mips/mips64/n32/s_fma.c
==============================================================================
--- fsf/trunk/ports/sysdeps/mips/mips64/n32/s_fma.c (added)
+++ fsf/trunk/ports/sysdeps/mips/mips64/n32/s_fma.c Fri Jun  1 21:23:38 2012
@@ -1,0 +1,6 @@
+/* MIPS long double is implemented in software by fp-bit (as of GCC
+   4.7) without support for exceptions or rounding modes, so the fma
+   implementation in terms of long double is slow and will not produce
+   correctly rounding results.  */
+
+#include <sysdeps/ieee754/dbl-64/s_fma.c>

Added: fsf/trunk/ports/sysdeps/mips/mips64/n64/s_fma.c
==============================================================================
--- fsf/trunk/ports/sysdeps/mips/mips64/n64/s_fma.c (added)
+++ fsf/trunk/ports/sysdeps/mips/mips64/n64/s_fma.c Fri Jun  1 21:23:38 2012
@@ -1,0 +1,6 @@
+/* MIPS long double is implemented in software by fp-bit (as of GCC
+   4.7) without support for exceptions or rounding modes, so the fma
+   implementation in terms of long double is slow and will not produce
+   correctly rounding results.  */
+
+#include <sysdeps/ieee754/dbl-64/s_fma.c>

Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/mips/Makefile
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/mips/Makefile (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/mips/Makefile Fri Jun  1 21:23:38 2012
@@ -8,13 +8,13 @@
 sysdep_headers += sys/cachectl.h sys/sysmips.h sys/tas.h
 endif
 
-# _MIPS_SIM_ABI32 == 1, _MIPS_SIM_ABIN32 == 2, _MIPS_SIM_ABI64 == 3
+# _MIPS_SIM_ABI32 == 1, _MIPS_SIM_NABI32 == 2, _MIPS_SIM_ABI64 == 3
 abi-variants := o32 n32 n64
 abi-includes := sgidefs.h
 abi-o32-options := -D_MIPS_SIM=1
 abi-o32-condition := _MIPS_SIM == _MIPS_SIM_ABI32
 abi-n32-options := -D_MIPS_SIM=2
-abi-n32-condition := _MIPS_SIM == _MIPS_SIM_ABIN32
+abi-n32-condition := _MIPS_SIM == _MIPS_SIM_NABI32
 abi-n64-options := -D_MIPS_SIM=3
 abi-n64-condition := _MIPS_SIM == _MIPS_SIM_ABI64
 

_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits