From owner-svn-src-all@FreeBSD.ORG Tue Jul 30 13:55:07 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 834595F7; Tue, 30 Jul 2013 13:55:07 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 462942522; Tue, 30 Jul 2013 13:55:07 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::bd91:996a:a777:8a5f] (unknown [IPv6:2001:7b8:3a7:0:bd91:996a:a777:8a5f]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 574325C5A; Tue, 30 Jul 2013 15:55:02 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers From: Dimitry Andric In-Reply-To: <1V4A3i-000M2D-6A@internal.tormail.org> Date: Tue, 30 Jul 2013 15:55:00 +0200 Content-Transfer-Encoding: 7bit Message-Id: <62DAF25F-E087-48BC-9BB1-05A5E078EDCA@FreeBSD.org> References: <201307301233.r6UCXLT8012177@svn.freebsd.org> <1V4A3i-000M2D-6A@internal.tormail.org> To: Jan Beich , John Baldwin X-Mailer: Apple Mail (2.1508) Cc: "svn-src-head@FreeBSD.org" , "svn-src-all@FreeBSD.org" , "src-committers@FreeBSD.org" 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 13:55:07 -0000 On Jul 30, 2013, at 15:33, 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) > > Even Clang's own from -msse* > > $ clang -dM -E -march=btver2 - #define __SSE4A__ 1 > #define __SSE4_1__ 1 > #define __SSE4_2__ 1 Hm, that's a good one. John, is it OK to adapt those to match gcc's definitions? We should also submit it upstream then. -Dimitry