This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Tests for 'fdim' math function fail


>Submitter-Id:	Simon Russell
>Originator:	root
>Organization:	Detracrown Ltd
>Confidential:	no
>Synopsis:	'fdim' math function fails tests
>Severity:	non-critical
>Priority:	medium
>Category:	libc
>Class:		sw-bug
>Release:	libc-2.0.112
>Environment:
Host type: i586-pc-linux-gnu
System: Linux localhost.localdomain 2.0.36 #1 Tue Oct 13 22:17:11 EDT 1998
i586 unknown
Architecture: i586 (AMD K6)

Addons: crypt linuxthreads

Build CC: gcc
Compiler version: egcs-2.91.60 19981201 (egcs-1.1.1 release)
Kernel headers: 2.2.1
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: yes
Build omitfp: no
Build bounded: no
Build static-nss: no
Stdio: libio

>Description:
When running MAKE CHECK, floating point tests fail with the following
output:

testing float (without inline functions)
Fail: fdim (9, 0) = 9
Result:
 is:         -9.00000000000000000000e+00  -0x1.20000000000000000000p+3
 should be:   9.00000000000000000000e+00   0x1.20000000000000000000p+3
 difference:  1.80000000000000000000e+01   0x1.20000000000000000000p+4
Fail: fdim (0, -9) = 9
Result:
 is:         -9.00000000000000000000e+00  -0x1.20000000000000000000p+3
 should be:   9.00000000000000000000e+00   0x1.20000000000000000000p+3
 difference:  1.80000000000000000000e+01   0x1.20000000000000000000p+4
Fail: fdim (+inf, 9) = +inf
 Value: -inf  -inf
Fail: fdim (+inf, -9) = +inf
 Value: -inf  -inf
Fail: fdim (+9, -inf) = +inf
 Value: -inf  -inf
Fail: fdim (-9, -inf) = +inf
 Value: -inf  -inf

Test suite completed:
  2158 test cases plus 2146 tests for exception flags executed.
  6 errors occured.

This occurs for each float type 'fdim' function.  All other library tests
pass without any problems.

>How-To-Repeat:
	Run MAKE CHECK...
>Fix:
	Sorry, can't help here, assembler is not my forte.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]