public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* confusing "cproj" errors for test-float on tilegx
@ 2015-07-10 20:24 Chris Metcalf
  2015-07-22 15:02 ` Joseph Myers
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Metcalf @ 2015-07-10 20:24 UTC (permalink / raw)
  To: GNU C Library

I'm not sure how to address these errors; can anyone suggest what might
be going wrong here?  test-float passed in the glibc 2.21 testing, so
maybe this is due to Joseph's change to test all rounding modes??
(Since tile doesn't have rounding modes, that doesn't seem that likely.)
But the last time cproj tests appear to have been touched was in
c980f2f4fe0f5 ("Fix cproj handling of (finite, NaN) arguments (bug 15531).")
but that was back in August 2013, certainly prior to the last time I
ran the test suite for glibc 2.21.

The double and idouble tests pass with the freshly-updated ULPs, but
the float and ifloat tests both fail with the appended output: cproj()
of various complex infinities should be yielding infinity, but instead
yields a very tiny positive number.

testing float (without inline functions)
Failure: Test: Real part of: cproj (inf + inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (inf - inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-inf + inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-inf - inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (inf + +0 i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (inf - 0 i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-inf + +0 i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-inf - 0 i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (+0 + inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (+0 - inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-0 + inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-0 - inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (inf + 1.0 i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (inf - 1.0 i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-inf + 1.0 i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-inf - 1.0 i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (1.0 + inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (1.0 - inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-1.0 + inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-1.0 - inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (inf + qNaN i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (inf - qNaN i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-inf + qNaN i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-inf - qNaN i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (qNaN + inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (qNaN - inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-qNaN + inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf
Failure: Test: Real part of: cproj (-qNaN - inf i)
Result:
  is:          3.57331108402828353086e-43   0x1.fe000000000000000000p-142
  should be:   inf   inf

Test suite completed:
   9998 test cases plus 9169 tests for exception flags and
     9169 tests for errno executed.
   28 errors occurred.

-- 
Chris Metcalf, EZChip Semiconductor
http://www.ezchip.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: confusing "cproj" errors for test-float on tilegx
  2015-07-10 20:24 confusing "cproj" errors for test-float on tilegx Chris Metcalf
@ 2015-07-22 15:02 ` Joseph Myers
  0 siblings, 0 replies; 2+ messages in thread
From: Joseph Myers @ 2015-07-22 15:02 UTC (permalink / raw)
  To: Chris Metcalf; +Cc: GNU C Library

This sounds like a compiler bug to me (whether in the compilation of 
cprojf or something else involved in the test).

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-22 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-10 20:24 confusing "cproj" errors for test-float on tilegx Chris Metcalf
2015-07-22 15:02 ` Joseph Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).