This is the mail archive of the glibc-bugs@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]

[Bug math/2592] New: test-float fails on sparc


Host system: Debian unstable with GCC 4.1.0 compiling glibc 2.4-2006032009.tar.bz2


testing float (without inline functions)
Failure:Test: llrint_downward (-0.2) == -1
Result:
 is:         0
 should be:  -1
Failure:Test: llrint_upward (0.2) == 1
Result:
 is:         0
 should be:  1

Test suite completed:
  2811 test cases plus 2513 tests for exception flags executed.
  2 errors occurred.


I have found that a simple test program - built with the normal glibc that
Debian-unstable ships - won't work either:

#include <fenv.h>
#include <math.h>
#include <stdio.h>
int main(void) {
    printf("%d\n", fesetround(FE_DOWNWARD)); // says 0
    printf("%f\n", llrint(-.2L)); // says 0
}

Which makes me think whether this could be a limitation of the CPU? (UltraSPARC
II, codename per /proc/cpuinfo: "TI Blackbird")

-- 
           Summary: test-float fails on sparc
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: aj at suse dot de
        ReportedBy: jengelh at gmx dot de
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: sparc64-linux-gnu
  GCC host triplet: sparc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=2592

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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