www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/12/15/13:31:21

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Sat, 15 Dec 2001 20:30:01 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Message-Id: <4331-Sat15Dec2001203001+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <3C1B38A4.5675566D@phekda.freeserve.co.uk> (message from Richard
Dawe on Sat, 15 Dec 2001 11:48:52 +0000)
Subject: Re: libemu and profiling (LONG) [Was: Re: Building a profiled version of
libc]
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1011209140442 DOT 14529B-100000 AT is> <3C1B38A4 DOT 5675566D AT phekda DOT freeserve DOT co DOT uk>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Sat, 15 Dec 2001 11:48:52 +0000
> From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
> 
> Built against 2.03, 387=n, EMU387=c:/develop/djgpp.rw/bin/emu387.dxe:
> 
> atan(0) = 0, sin(0) = 0, cos(0) = 1
> atan(0.1) = 0.09, sin(0.1) = 0.09, cos(0.1) = 4e-06
> atan(0.2) = 0.1, sin(0.2) = 0.1, cos(0.2) = 6e-05
> atan(0.2) = 0.2, sin(0.2) = 0.2, cos(0.2) = 0.0003
> atan(0.3) = 0.3, sin(0.3) = 0.3, cos(0.3) = 0.001
> atan(0.4) = 0.4, sin(0.4) = 0.4, cos(0.4) = 0.002
> atan(0.5) = 0.5, sin(0.5) = 0.5, cos(0.5) = 0.005
> atan(0.6) = 0.6, sin(0.6) = 0.6, cos(0.6) = 0.009
> atan(0.7) = 0.6, sin(0.7) = 0.7, cos(0.7) = 0.01
> atan(0.8) = 0.7, sin(0.8) = 0.7, cos(0.8) = 0.02
> 
> Built against CVS, 387=n, EMU387=c:/djgpp/bin/emu387.dxe:
> 
> atan(0) = 0, sin(0) = 0, cos(0) = 1
> atan(0.1) = 0.0996687, sin(0.1) = 0.0998334, cos(0.1) = 0.995004
> atan(0.2) = 0.197396, sin(0.2) = 0.198669, cos(0.2) = 0.980067
> atan(0.3) = 0.291457, sin(0.3) = 0.29552, cos(0.3) = 0.955336
> atan(0.4) = 0.380506, sin(0.4) = 0.389418, cos(0.4) = 0.921061
> atan(0.5) = 0.463648, sin(0.5) = 0.479426, cos(0.5) = 0.877583
> atan(0.6) = 0.54042, sin(0.6) = 0.564642, cos(0.6) = 0.825336
> atan(0.7) = 0.610726, sin(0.7) = 0.644218, cos(0.7) = 0.764842
> atan(0.8) = 0.674741, sin(0.8) = 0.717356, cos(0.8) = 0.696707
> atan(0.9) = 0.732815, sin(0.9) = 0.783327, cos(0.9) = 0.62161
> 
> So I conclude that there's something very wrong with emu387.dxe built
> against CVS.

It's quite obvious, yes.

> I rebuilt without profiling, but the result was the same. I downgraded to
> gcc 2.95.3 and it worked again:
> 
> atan(0) = 0, sin(0) = 0, cos(0) = 1
> atan(0.1) = 0.0996687, sin(0.1) = 0.0998334, cos(0.1) = 0.995004
> atan(0.2) = 0.197396, sin(0.2) = 0.198669, cos(0.2) = 0.980067
> atan(0.3) = 0.291457, sin(0.3) = 0.29552, cos(0.3) = 0.955336
> atan(0.4) = 0.380506, sin(0.4) = 0.389418, cos(0.4) = 0.921061
> atan(0.5) = 0.463648, sin(0.5) = 0.479426, cos(0.5) = 0.877583
> atan(0.6) = 0.54042, sin(0.6) = 0.564642, cos(0.6) = 0.825336
> atan(0.7) = 0.610726, sin(0.7) = 0.644218, cos(0.7) = 0.764842
> atan(0.8) = 0.674741, sin(0.8) = 0.717356, cos(0.8) = 0.696707
> atan(0.9) = 0.732815, sin(0.9) = 0.783327, cos(0.9) = 0.62161
> 
> So it looks like a code generation issue.

Indeed.  Thanks for digging into this.

Andris, any ideas?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019