This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


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

Re: Two questions about testing.


Jonathan Larmour <jlarmour@redhat.co.uk> writes:

> Sergei Organov wrote:
> > 
> > > Also, while not an absolute requirement, if you could avoid using libm
> > > functions that would be good so the test can still run if libm is disabled.
> > 
> > I believe trivial FPU operations like +,-,*,/ would be enough, so nothing from
> > math library will be involved. As far as I remember, even if target doesn't
> > support '*' or '/', the support code resides in the "libgcc.a"
> 
> Yep. Another thing I just thought of is that it would be good (if you have
> time) to write your test for each of the types float, double and long
> double - all should work in gcc.

I believe writing tests for all of types takes almost the same time as
writing for single type. If you know that you need to do it for multiple types
before you start writing ;-) BTW, do I need to write tests in C? 

> 
> The only caveat is, of course, not to rely on the format :-). e.g. on some
> targets double's are 32-bits (yes, really. Some HW manufacturers should be
> shot for specifying ABIs like that).

Thanks, I know. Have seen it in newlib's libm sources ;-)

Sergei.


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