[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
test-float fails on powerpc
From: |
Santiago Vila |
Subject: |
test-float fails on powerpc |
Date: |
Sun, 29 Apr 2012 14:24:41 +0200 (CEST) |
User-agent: |
Alpine 2.02 (DEB 1266 2009-07-14) |
Hello.
I implicitly enabled gnulib tests in the Debian diffutils package
(by switching debian/rules to debhelper) and now the package fails to
build from source on the powerpc architecture because test-float fails:
./test-float
test-float.c:333: assertion failed
Aborted
This is the relevant code:
/* Check the value of LDBL_MAX. */
{
volatile long double m = LDBL_MAX;
int n;
ASSERT (m + m > m);
for (n = 0; n <= 2 * LDBL_MANT_DIG; n++)
{
volatile long double pow2_n = pow2l (n); /* 2^n */
volatile long double x = m + (m / pow2_n);
if (x > m)
ASSERT (x + x == x); /* <==== This is the line which fails */
else
ASSERT (!(x + x == x));
}
}
In the meantime, I will disable this test in the Debian package.
Thanks.
- test-float fails on powerpc,
Santiago Vila <=