On Fri, 12 Oct 2018 at 17:57, Jeff Law <l...@redhat.com> wrote: > > On 10/12/18 9:51 AM, Giuliano Augusto Faulin Belinassi wrote: > > Hello > > What is the output of these functions on such arch? Since the > > test didn't fail for the sinatan counterpart, an possible explanation > > would be that the calculation of the sqrf, sqrt and sqrtl (lines > > 62-64) yielded a number that is far behind of what it should be. > > However, I am still not sure about this, so I will investigate > > further. > > How about I write a small program to check if the result > > obtained by this calculation is what it should be? > I suspect it's less the architecture and more the underlying library. > As Christophe mentioned, both issues are with newlib which is an C > library primarily used in the emebedded space. I believe it's math code > derives from early BSD libm and likely hasn't been stressed for this > kind of correctness. It's lightly maintained (primarily for cygwin). > > I'm going to run the testcases in my arm linux chroots. That should > allow us to rule out codegen issues as those chroots will be using glibc > for their math library. > My tests on arm-linux-gnueabi* are OK, so yours shoud be OK too :)
> jeff