[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
- Testsuite failures of gawk 5.2.0, Andreas Schwab, 2022/09/05
- Re: Testsuite failures of gawk 5.2.0, arnold, 2022/09/05
- Re: Testsuite failures of gawk 5.2.0, Andreas Schwab, 2022/09/05
- Re: Testsuite failures of gawk 5.2.0, arnold, 2022/09/08
- Re: Testsuite failures of gawk 5.2.0,
arnold <=
- Re: Testsuite failures of gawk 5.2.0, Eli Zaretskii, 2022/09/09
- Re: Testsuite failures of gawk 5.2.0, Wolfgang Laun, 2022/09/09
- Re: Testsuite failures of gawk 5.2.0, Eli Zaretskii, 2022/09/09
- Re: Testsuite failures of gawk 5.2.0, Wolfgang Laun, 2022/09/09
- Re: Testsuite failures of gawk 5.2.0, arnold, 2022/09/09
Re: Testsuite failures of gawk 5.2.0, Andreas Schwab, 2022/09/05
Re: Testsuite failures of gawk 5.2.0, Andreas Schwab, 2022/09/06
Re: Testsuite failures of gawk 5.2.0, arnold, 2022/09/18