From owner-svn-src-all@FreeBSD.ORG Tue Jul 30 16:18:44 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5512ACB; Tue, 30 Jul 2013 16:18:44 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 232AF2D55; Tue, 30 Jul 2013 16:18:44 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id CDFEEB963; Tue, 30 Jul 2013 12:18:42 -0400 (EDT) From: John Baldwin To: Jan Beich Subject: Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers Date: Tue, 30 Jul 2013 12:14:48 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p28; KDE/4.5.5; amd64; ; ) References: <201307301233.r6UCXLT8012177@svn.freebsd.org> <1V4A3i-000M2D-6A@internal.tormail.org> In-Reply-To: <1V4A3i-000M2D-6A@internal.tormail.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201307301214.48930.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 30 Jul 2013 12:18:42 -0400 (EDT) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Dimitry Andric X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jul 2013 16:18:44 -0000 On Tuesday, July 30, 2013 9:33:51 am Jan Beich wrote: > Dimitry Andric writes: > > > Author: dim > > Date: Tue Jul 30 12:33:21 2013 > > New Revision: 253802 > > URL: http://svnweb.freebsd.org/changeset/base/253802 > > > > Log: > > Pull in r186696 from upstream clang trunk: > > > > This patch implements __get_cpuid_max() as an inline and __cpuid() > > and __cpuid_count() as macros to be compatible with GCC's cpuid.h. > [...] > > +#define bit_SSE41 0x00080000 > > +#define bit_SSE42 0x00100000 > > GCC's spelling is different > > $ fgrep -r bit_SSE4 /usr/local/lib/gcc48/**/ > /usr/local/lib/gcc48/**/cpuid.h:#define bit_SSE4_1 (1 << 19) > /usr/local/lib/gcc48/**/cpuid.h:#define bit_SSE4_2 (1 << 20) > /usr/local/lib/gcc48/**/cpuid.h:#define bit_SSE4a (1 << 6) Note that this was a clean-room implementation, so I based this on the names in the Intel SDM. I was actually hoping for discussion on the clang lists perhaps along the lines of not supplying these constants at all, or only a subset, etc. -- John Baldwin