[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [issues] Re: Help , test iconvdata/tst-iconv7 failed on mips simulator



On Tue, 15 Sep 2009, Amker.Cheng wrote:

> Thanks for the explanation.
> 
> >> 1, I don't know why there are so many math tests failed, does it matter?
> >
> > These will fail unless the floating-point types have exceptions and
> > rounding modes support, which soft-float does not.
> I've noticed the article from "http://gcc.gnu.org/wiki/Software_floating_point";
> says that the glibc's soft-float implementation supports
> floating-point exceptions and rounding modes.
> I'm not sure whether the utilities is not implemented for mips, or
> just compiled out by default.
> I'd like the first after checking the source codes, right?

MIPS uses fp-bit, not soft-fp, switching is Hard (depends on a lot of the 
toplevel libgcc transition) and switching to using soft-fp in libc instead 
of libgcc is also tricky (involves symbol versioning to keep existing 
binaries expecting symbols from shared libgcc working).  Exceptions and 
rounding modes are only supported when using soft-fp in libc, and only 
when additional support code for the interaction with <fenv.h> is present 
(only present for Power Architecture at present).

-- 
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx