soft floating point and glibc's test-float?

Dan Kegel dank@kegel.com
Fri Jul 25 05:25:00 GMT 2003


Anyone tried glibc-2.2.5's floating point regression test on processors
with soft floating point?  I'm compiling with gcc-3.3 on a ppc without fp, and
test-float, test-ifloat, test-double, and test-idouble are failing.
It looks like small inaccuracies.  For instance, here's the tail
of float.out:

-------------------------
Failure: Test: yn (10, 10.0) == -0.35981415218340272205
Result:
  is:         -3.59814137220382690430e-01  -0x1.70731e00000000000000p-2
  should be:  -3.59814167022705078125e-01  -0x1.70732000000000000000p-2
  difference:  2.98023223876953125000e-08   0x1.00000000000000000000p-25
  ulp       :  1.0000
  max.ulp   :  0.0000
Maximal error of `yn'
  is      : 2 ulp
  accepted: 0 ulp

Test suite completed:
   2484 test cases plus 2280 tests for exception flags executed.
   205 errors occurred.
-------------------------

Is this the expected result for the soft floating point library?

Thanks,
Dan

-- 
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045



More information about the Libc-alpha mailing list