This is the mail archive of the libc-alpha@sourceware.org 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]
Other format: [Raw text]

Re: ppc32: math failures - logb_downward (1) gives wrong result


On Thu, 21 Jun 2012, Andreas Jaeger wrote:

> Build current trunk (as of yesterday) on s390 with gcc 4.7, I see a couple of
> failures in the math testsuite:

ppc32 or s390?  For ppc32 it's a known GCC bug (though there may not be an 
entry in GCC Bugzilla for it): the code sequence generated for converting 
integers to floating-point, on older processors, wrongly converts 0 to -0 
in round-downwards mode (if -frounding-math, a more complicated sequence 
should be used instead that temporarily sets round-to-nearest mode).

-- 
Joseph S. Myers
joseph@codesourcery.com


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