Date: Tue, 30 Jul 2013 15:55:00 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Jan Beich <jbeich@tormail.org>, John Baldwin <jhb@freebsd.org> Cc: "svn-src-head@FreeBSD.org" <svn-src-head@freebsd.org>, "svn-src-all@FreeBSD.org" <svn-src-all@freebsd.org>, "src-committers@FreeBSD.org" <src-committers@freebsd.org> Subject: Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers Message-ID: <62DAF25F-E087-48BC-9BB1-05A5E078EDCA@FreeBSD.org> In-Reply-To: <1V4A3i-000M2D-6A@internal.tormail.org> References: <201307301233.r6UCXLT8012177@svn.freebsd.org> <1V4A3i-000M2D-6A@internal.tormail.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jul 30, 2013, at 15:33, Jan Beich <jbeich@tormail.org> wrote: > Dimitry Andric <dim@FreeBSD.org> 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 -</dev/null | fgrep -i sse4 > #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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?62DAF25F-E087-48BC-9BB1-05A5E078EDCA>