Bug 156662

Summary: cpow() ulp errors in test-float, test-ifloat
Product: [Fedora] Fedora Reporter: John Reiser <jreiser>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-03 09:08:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Reiser 2005-05-03 00:09:42 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7.7) Gecko/20050416 Fedora/1.0.3-2 Firefox/1.0.3

Description of problem:
Running "rpmbuild -ba --target ppc glibc.spec" on PowerPC (Mac mini ["G4"]) shows these errors in the internal testcases:
-----
testing float (without inline functions)
Failure: Test: Real part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i
Result:
 is:         -1.18999961853027343750e+02  -0x1.dbfff600000000000000p+6
 should be:  -1.19000000000000000000e+02  -0x1.dc000000000000000000p+6
 difference:  3.81469726562500000000e-05   0x1.40000000000000000000p-15
 ulp       :  5.0000
 max.ulp   :  4.0000
Maximal error of real part of: cpow
 is      : 5 ulp
 accepted: 4 ulp
Maximal error of imaginary part of: cpow
 is      : 2 ulp
 accepted: 2 ulp

Test suite completed:
  2599 test cases plus 2384 tests for exception flags executed.
  2 errors occurred.
-----
testing float (inline functions)
Failure: Test: Real part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i
Result:
 is:         -1.18999961853027343750e+02  -0x1.dbfff600000000000000p+6
 should be:  -1.19000000000000000000e+02  -0x1.dc000000000000000000p+6
 difference:  3.81469726562500000000e-05   0x1.40000000000000000000p-15
 ulp       :  5.0000
 max.ulp   :  4.0000
Maximal error of real part of: cpow
 is      : 5 ulp
 accepted: 4 ulp
Maximal error of imaginary part of: cpow
 is      : 2 ulp
 accepted: 2 ulp

Test suite completed:
  2537 test cases plus 2322 tests for exception flags executed.
  2 errors occurred.
-----

Version-Release number of selected component (if applicable):
glibc-2.3.5-4

How reproducible:
Always

Steps to Reproduce:
1. rpmbuild -ba --target ppc glibc.spec >rpm.out 2>&1 &; wait
2.
3.
  

Actual Results:  Output from rpmbuild shows 2 testcases failed in each of test-float and test-ifloat.

Expected Results:  No [unexpected] errors.

Additional info:

Comment 1 Jakub Jelinek 2005-05-03 09:08:20 UTC
Yes, ulps need to be updated on all arches for GCC4.  This is known and will
eventually happen.