This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/25960] New: __gcc_add doesn't handle -0.0L properly
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2006 14:31:01 -0000
- Subject: [Bug target/25960] New: __gcc_add doesn't handle -0.0L properly
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
volatile long double l, m, n;
extern void abort (void);
int
main (void)
{
l = __builtin_copysignl (0.0L, -1.0L);
m = __builtin_copysignl (0.0L, -1.0L);
n = l + m;
if (__builtin_copysignl (1.0L, n) >= 0.0L)
abort ();
return 0;
}
fails on ppc*-linux with -mlong-double-128, -0.0 + -0.0 gives 0.0 rather than
expected -0.0.
--
Summary: __gcc_add doesn't handle -0.0L properly
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: powerpc*-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25960