This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Test suite bug...?
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Test suite bug...?
- From: "David Termohlen" <Termohlen dot David at oscsystems dot com>
- Date: Thu, 10 Aug 2000 10:07:13 -0400
I'm not sure if this is a bug... but it sure looks ugly...
Looking for a validation for sin/cos, I came accros your test suite. In file
921206-1.c "smap" is never initialized and the index "l" is allowed to go
negative.
Also, the test does not check the full range of (un normalized) values sent to
"sin". In short, it looks like this routine has never been used... Do y'all
have another set of routine to validate trig functions?
Dave Termohlen
double sqrt(double),fabs(double),sin(double);
int sxs;
int sys;
f()
{
int l;
int sm = -52, sx = 52;
char *smap;
for (l = 0; l < 9; l++)
{
double g;
int cx, cy, gx, gy, x, y;
gx = 2 > g / 3 ? 2 : g / 3;
gy = 2 > g / 3 ? 2 : g / 3;
for (y = 0 > cy - gy ? 0 : cy - gy; y <= (sys - 1 < cy + gy ? sys : cy +
gy); y++)
{
int sx = 0 > cx - gx ? 0 : cx - gx;
short *ax = (short *) (y * sxs + sx);
for (x = sx; x <= (sxs - 1 < cx + gx ? sxs - 1 : cx + gx); x++)
{
double c=2.25, z=sqrt(fabs(1-c)), cz=(c>1?0.0:-10)>z?c>1?0:1:z;
}
}
}
for (l = sm; l <= sx; l++)
smap[l] = l > 0 ? 1 + pow(sin(.1 * l / sx)) : 1 - pow(sin(.1 * l / sm));
}