From owner-freebsd-amd64@FreeBSD.ORG Tue Jul 19 15:26:13 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE06516A420 for ; Tue, 19 Jul 2005 15:26:13 +0000 (GMT) (envelope-from kono@kth.se) Received: from mx1.kth.se (mx1.kth.se [130.237.32.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAD6143D4C for ; Tue, 19 Jul 2005 15:26:12 +0000 (GMT) (envelope-from kono@kth.se) Received: from localhost (localhost.localdomain [127.0.0.1]) by mx1.kth.se (Postfix) with ESMTP id 28E20141040 for ; Tue, 19 Jul 2005 17:26:11 +0200 (CEST) Received: from mx1.kth.se ([127.0.0.1]) by localhost (mx1.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06971-01-97 for ; Tue, 19 Jul 2005 17:26:09 +0200 (CEST) Received: from webmail.sys.kth.se (phidippides.sys.kth.se [130.237.32.163]) by mx1.kth.se (Postfix) with ESMTP id ACCF31407D7 for ; Tue, 19 Jul 2005 17:26:09 +0200 (CEST) Received: from 130.237.35.96 (SquirrelMail authenticated user kono) by webmail.sys.kth.se with HTTP; Tue, 19 Jul 2005 17:26:09 +0200 (CEST) Message-ID: <49213.130.237.35.96.1121786769.squirrel@webmail.sys.kth.se> Date: Tue, 19 Jul 2005 17:26:09 +0200 (CEST) From: "Olexandr Konovalenko" To: freebsd-amd64@freebsd.org User-Agent: SquirrelMail/1.4.4-2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at kth.se Subject: Re: better optimization flags for opteron (amd64)// -ffast-math and -O3 are not friends X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2005 15:26:13 -0000 hi! I found that on my system combination of -ffast-math AND -O3 is slower than -O0 on AMD64 (interestingly it is true for Xeon EM64 as well), how can it be? though just -O3 gives fastest double precision floating point computations. On 32bit platform this effect is not observed. please look here: http://daemon.nanophys.kth.se/~kono/testfcpu the compiler I use: Using built-in specs. Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 3.4.2 [FreeBSD] 20040728 my platform: uname -a FreeBSD daemon.nanophys.kth.se 5.4-STABLE FreeBSD 5.4-STABLE #0: Tue Apr 19 20:26:31 CEST 2005 root@daemon.nanophys.kth.se:/usr/obj/usr/src/sys/DAEMON64 amd64 -- Alexander Konovalenko