This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/2592] New: test-float fails on sparc
- From: "jengelh at gmx dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 20 Apr 2006 21:36:36 -0000
- Subject: [Bug math/2592] New: test-float fails on sparc
- Reply-to: sourceware-bugzilla at sourceware dot org
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.