From owner-freebsd-bugs Fri Jan 10 6:50: 5 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C763E37B401 for ; Fri, 10 Jan 2003 06:50:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D50643ED8 for ; Fri, 10 Jan 2003 06:50:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0AEo3NS002467 for ; Fri, 10 Jan 2003 06:50:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0AEo3hA002466; Fri, 10 Jan 2003 06:50:03 -0800 (PST) Date: Fri, 10 Jan 2003 06:50:03 -0800 (PST) Message-Id: <200301101450.h0AEo3hA002466@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Andrew Gallatin Subject: Re: bin/43299: march=pentium4 miscompiles msun/src/e_pow.c Reply-To: Andrew Gallatin Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/43299; it has been noted by GNATS. From: Andrew Gallatin 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