Bug 1384

Summary: test-float and test-double failures compiling with gcc-4.1
Product: glibc Reporter: Steven Munroe <sjmunroe>
Component: mathAssignee: Andreas Jaeger <aj>
Status: RESOLVED FIXED    
Severity: normal CC: glibc-bugs
Priority: P2 Flags: fweimer: security-
Version: unspecified   
Target Milestone: ---   
Host: powerpc-*-linux Target: powerpc-*-linux
Build: powerpc-*-linux Last reconfirmed:
Attachments: patch for sysdeps/powerpc/fpu/libm-test-ulps

Description Steven Munroe 2005-09-27 20:30:31 UTC
It seems that gcc-4.1 is getting getting more agressive using the powerpc
fused-multiply-add (fmadd) which impacts the code gen for the bessel functions
in ./dbl-64/e_j1.c, ./dbl-64/e_j1.c, ./flt-32/e_j1f.c, ./flt-32/e_j1f.c. The
changes the rounding a bit and results in a 1-2 bit (ulp) difference in the
result from the code generated by gcc-3.4. This only seemd to impacts the y1()
yn() functions.
Comment 1 Steven Munroe 2005-09-27 20:43:15 UTC
Created attachment 677 [details]
patch for sysdeps/powerpc/fpu/libm-test-ulps

This patch expands the results range by 1-2 ulps so that test-float and
test-double pass when glibc is built with either gcc-3.4 or gcc-4.1
Comment 2 Sourceware Commits 2005-09-28 20:05:18 UTC
Subject: Bug 1384

CVSROOT:	/cvs/glibc
Module name:	libc
Changes by:	roland@sources.redhat.com	2005-09-28 20:05:13

Modified files:
	sysdeps/powerpc/fpu: libm-test-ulps 

Log message:
	2005-09-26  Steven Munroe  <sjmunroe@us.ibm.com>
	
	[BZ #1384]
	* sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected y1, y1f, yn,
	ynf results.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/powerpc/fpu/libm-test-ulps.diff?cvsroot=glibc&r1=1.13&r2=1.14

Comment 3 Ulrich Drepper 2005-10-15 20:37:18 UTC
Apparently checked in.
Comment 4 Sourceware Commits 2005-10-17 04:33:06 UTC
Subject: Bug 1384

CVSROOT:	/cvs/glibc
Module name:	libc
Branch: 	glibc-2_3-branch
Changes by:	roland@sources.redhat.com	2005-10-17 04:33:03

Modified files:
	sysdeps/powerpc/fpu: libm-test-ulps 

Log message:
	2005-09-26  Steven Munroe  <sjmunroe@us.ibm.com>
	
	[BZ #1384]
	* sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected y1, y1f, yn,
	ynf results.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/powerpc/fpu/libm-test-ulps.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.11.2.1&r2=1.11.2.2