pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/34691: TME sun3 emulator sometimes incorrectly performs fmove.x
The following reply was made to PR pkg/34691; it has been noted by GNATS.
From: SigmFSK%aol.com@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/34691: TME sun3 emulator sometimes incorrectly performs fmove.x
Date: Wed, 11 Oct 2006 18:22:01 EDT
TME also has a problem with fmove.d.
The following code, taken from gcc-3.2.3 testsuite 980709-1.c passes on a
real sun3 with NetBSD 3.0/gcc-3.3.3 and SunOS 4.1.1/gcc-3.2.3.
But it always aborts under TME running SunOS 4.1.1/gcc-3.2.3, and sometimes
aborts under TME running NetBSD 3.0/gcc-3.3.3.
#include <math.h>
main()
{
volatile double a;
double c;
a = 32.0;
c = pow(a, 1.0/3.0);
if (!(c - 0.1 < 3.174802)) abort();
}
Under SunOS 4.1.1, the actual problem is TME fails to put a value in fp6
with the following instruction inside the "pow" routine:
fmove.d (08,a6), fp6
The executable sometimes passed under NetBSD 3.0/gcc-3.3.3. I didn't dig
into it enough to determine why it sometimes passed - fixing the general
fmove.d and fmove.x problem would likely clear it up though.
Home |
Main Index |
Thread Index |
Old Index