Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2003 06:50:03 -0800 (PST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/43299: march=pentium4 miscompiles msun/src/e_pow.c
Message-ID:  <200301101450.h0AEo3hA002466@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/43299; it has been noted by GNATS.

From: Andrew Gallatin <gallatin@cs.duke.edu>
To: freebsd-gnats-submit@FreeBSD.org
Cc: mi@aldan.algebra.com
Subject: Re: bin/43299: march=pentium4 miscompiles msun/src/e_pow.c
Date: Fri, 10 Jan 2003 09:47:17 -0500 (EST)

 The problem seems to have re-appeared with more recent kernel and
 world.  With a kernel and world dated January 8th (noon EST),
 I see the following behaviour:
 
 
 % cc -O -march=pentium4 /home/gallatin/hacks/t.c ../i387/s_scalbn.S ../i387/e_sqrt.S e_pow.c
 % ./a.out
 2^2.1 is 0.5
 11^-2.1 is 0.0909091
 
 Leaving off the -O allows the binary to be built correctly:
 
 % cc  -march=pentium4 /home/gallatin/hacks/t.c ../i387/s_scalbn.S ../i387/e_sqrt.S e_pow.c
 % /a.out
 
 
 The problem seems to be gcc specific, as binaries built with icc seem
 to work correctly regardless of optimization level or use of sse2.
 
 Drew

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301101450.h0AEo3hA002466>