From owner-freebsd-arch@FreeBSD.ORG Tue Oct 23 14:18:50 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28520D71 for ; Tue, 23 Oct 2012 14:18:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id EB3B48FC0C for ; Tue, 23 Oct 2012 14:18:49 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 5FD13B91A; Tue, 23 Oct 2012 10:18:49 -0400 (EDT) From: John Baldwin To: freebsd-arch@freebsd.org Subject: Re: using SSE2 in kernel C code (improving AES-NI module) Date: Tue, 23 Oct 2012 08:34:20 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p20; KDE/4.5.5; amd64; ; ) References: <20121019233833.GS1967@funkthat.com> <20121021061011.GG35915@deviant.kiev.zoral.com.ua> <20121023070417.GD1563@funkthat.com> In-Reply-To: <20121023070417.GD1563@funkthat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201210230834.20167.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 23 Oct 2012 10:18:49 -0400 (EDT) Cc: Konstantin Belousov , John-Mark Gurney X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2012 14:18:50 -0000 On Tuesday, October 23, 2012 3:04:17 am John-Mark Gurney wrote: > Konstantin Belousov wrote this message on Sun, Oct 21, 2012 at 09:10 +0300: > > Most likely, you can put the ${CFLAGS} on the command line, followed > > by -msse -msse2. > > I can't use CFLAGS because it removes access to the xmmintrin.h header > file... It looks like an option is to use: > -fpic ${OPTFLAGS:C/^-O2$/-O3/} ${DEBUG} Err, shouldn't later options override new ones? If you have "${CFLAGS} -msse -msse2 -maes" does that not work? -- John Baldwin