This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.	
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]