This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re:Call for testers: SH optimized software floating point
- From: "Naveen H.S." <naveenh at KPITCummins dot com>
- To: <amylaar at spamcop dot net>
- Cc: <gcc-patches at gcc dot gnu dot org>, <rakesh dot kumar at noida dot hcltech dot com>
- Date: Mon, 16 Oct 2006 15:26:56 +0530
- Subject: Re:Call for testers: SH optimized software floating point
Hi,
We had built the SH-toolchain using "optimized software floating
point" patch. We have come across a small issue in it. The floating
point routine "fixunsdfsi", which converts the double value to long
value for unsigned variables yields zero for all negative values.
Its logical that it should be giving zero for all negative values as
it is unsigned value.
So we tested the toolchain without that patch, which yielded negative
values. We are concerned whether it should yield negative result or
zero for all negative results.
Please comment on the same
Please find below the testcase that demonstrates the above.
===================================================================
unsigned int u3 = 23325;
float u1 = 1319;
double u2 = 998983421.23523523;
int
main ()
{
u3 = u1 - u2;
return 0;
}
===================================================================
Regards,
Naveen.H.S.
KPIT Cummins Infosystems Ltd,
Pune (INDIA)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH, H8, R8C, M16C
and M32C Series. The following site also offers free technical support
to its users. Visit http://www.kpitgnutools.com for details.
Latest versions of KPIT GNU tools were released on October 3, 2006.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~