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 24 May 2012 23:48, Matt Thomas <matt%3am-software.com@localhost> wrote:
>
> On May 24, 2012, at 3:01 PM, David Brownlee wrote:
>>
>> [...] crashing under NetBSD/current  6.99.7 in lib/libm/arch/vax/n_argred.S 
>> [..]
>
> I added a polyd macro so that the polyd instruction should be avoided.
> I wonder if it's being used.

That looks to be the case - in lib/libm/arch/vax/n_argred.S

sine:
        muld2   %r1,%r1         # Xsq = X * X
        cmpw    $0x2480,%r1     # [zl] Xsq > 2^-56?
        blss    1f              # [zl] yes, go ahead and do polyd
        clrq    %r1             # [zl] work around 11/780 FPA polyd bug
1:
        polyd   %r1,$7,sin_coef # Q = P(Xsq) , of deg 7

What would be the correct fix for this?


Home | Main Index | Thread Index | Old Index