Port-vax archive

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

Re: Does anyone have a netbsd-5 or earlier VAX to hand?



On May 24, 2012, at 3:01 PM, David Brownlee wrote:

> If so, could they run this and check the output?
> 
> Its crashing under NetBSD/current  6.99.7 in
> lib/libm/arch/vax/n_argred.S, and I'm just curious when it
> started being an issue - of if NetBSD/vax has never been
> able to calculate the sin of 1 :)
> 
> 
> /* sintest.c: output sin(1) - crashing on NetBSD/vax current
>  cc -Wall -g -o sintest sintest.c  -lm && ./sintest
> */
> #include <math.h>
> #include <stdio.h>
> 
> int main()
> {
>    double test = sin((double)1);
>    printf("test=%lf\n", test);
>    return 0;
> }

I added a polyd macro so that the polyd instruction should be avoided.
I wonder if it's being used.


Home | Main Index | Thread Index | Old Index