Bug 1384 - test-float and test-double failures compiling with gcc-4.1
Summary: test-float and test-double failures compiling with gcc-4.1
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: math (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Andreas Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-27 20:30 UTC by Steven Munroe
Modified: 2018-04-19 14:24 UTC (History)
1 user (show)

See Also:
Host: powerpc-*-linux
Target: powerpc-*-linux
Build: powerpc-*-linux
Last reconfirmed:
fweimer: security-


Attachments
patch for sysdeps/powerpc/fpu/libm-test-ulps (519 bytes, patch)
2005-09-27 20:43 UTC, Steven Munroe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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