1 Mar 2004 01:13
Re: [patch] Fix builtin-explog-1.c.
Kaveh R. Ghazi <ghazi <at> caip.rutgers.edu>
2004-03-01 00:13:09 GMT
2004-03-01 00:13:09 GMT
> From: Kazu Hirata <kazu <at> cs.umass.edu> > > Hi, > > Attached is a patch to fix builtin-explog-1.c. > > On H8, float is the only floating point math available, and types like > long double or double are the same as float. Consequently, the > following test fails by the smallest margin. > > if (EXP(5.0) < (BASE)*(BASE)*(BASE)*(BASE)*(BASE) - PREC \ > || EXP(5.0) > (BASE)*(BASE)*(BASE)*(BASE)*(BASE) + PREC \ > > The patch relaxes PREC and PRECL if the target does not actually have > double or long double. > > Tested on h8300-elf. OK to apply? > > Kazu Hirata > > 2004-02-28 Kazu Hirata <kazu <at> cs.umass.edu> > > * gcc.dg/torture/builtin-explog-1.c (PREC): Make it the same > as PRECF if sizeof (float) > sizeof (double). > (PRECL): Make it the same as PRECF if > sizeof (float) > sizeof (long double). I can't approve your change, but FWIW as the author of the testcase, your approach is fine with me (assuming you correct the comparison problem noted earlier.)(Continue reading)
RSS Feed