bug-gawk
[Top][All Lists]
Advanced

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

Re: Testsuite failures of gawk 5.2.0


From: arnold
Subject: Re: Testsuite failures of gawk 5.2.0
Date: Thu, 08 Sep 2022 14:07:39 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Hi.

The RiscV issue is really weird. (NaNs are weird.) On x86_64:

$ cat t.c
#include <stdio.h>
#include <math.h>

void
p(double x)
{
        printf("got %g\n", x);
}

int
main(int argc, char **argv)
{
        double d = sqrt(-1.0);

        printf("main: %g\n", d);
        p(d + 0);

        return 0;
}
$ gcc t.c -lm -o t
$ ./t
main: -nan
got -nan

On RiscV, I have to initialize `d' like so:

        double d = -sqrt(-1.0);

$ gcc t.c -lm -o t
$ ./t
main: -nan
got nan

Adding zero changes the sign of the value passed.

Sheesh, what a headache.

I'm not sure yet what to do about this, but at least now I
can point a finger at the hardware.

Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]