From owner-svn-src-head@freebsd.org Tue Nov 21 12:44:31 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CBBC1DEDF5C; Tue, 21 Nov 2017 12:44:31 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail107.syd.optusnet.com.au (mail107.syd.optusnet.com.au [211.29.132.53]) by mx1.freebsd.org (Postfix) with ESMTP id 938456D166; Tue, 21 Nov 2017 12:44:30 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from [192.168.0.103] (c110-21-101-228.carlnfd1.nsw.optusnet.com.au [110.21.101.228]) by mail107.syd.optusnet.com.au (Postfix) with ESMTPS id 50C6FD4E556; Tue, 21 Nov 2017 23:44:23 +1100 (AEDT) Date: Tue, 21 Nov 2017 23:44:23 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Warner Losh cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326037 - head/share/mk In-Reply-To: <201711202241.vAKMfMpO008434@repo.freebsd.org> Message-ID: <20171121233000.M2067@besplex.bde.org> References: <201711202241.vAKMfMpO008434@repo.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=cK6QihWN c=1 sm=1 tr=0 a=PalzARQSbocsUSjMRkwAPg==:117 a=PalzARQSbocsUSjMRkwAPg==:17 a=kj9zAlcOel0A:10 a=6I5d2MoRAAAA:8 a=8AV8jQmTcnAfOZtTT8cA:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 12:44:31 -0000 On Mon, 20 Nov 2017, Warner Losh wrote: > Author: imp > Date: Mon Nov 20 22:41:22 2017 > New Revision: 326037 > URL: https://svnweb.freebsd.org/changeset/base/326037 > > Log: > Add -mno-avx2 for clang as well as -mno-avx. We don't want either of > them when asking for no SIMD. Is this needed. For SSE, -mno-sse implies -mno-sse[2,3,4,...] so an multiple set of no-sse* flags are not needed (I have only checked this for sse2). Multiple no-sse* flags are also not used. > Modified: head/share/mk/bsd.cpu.mk > ============================================================================== > --- head/share/mk/bsd.cpu.mk Mon Nov 20 22:27:33 2017 (r326036) > +++ head/share/mk/bsd.cpu.mk Mon Nov 20 22:41:22 2017 (r326037) > @@ -393,7 +393,7 @@ CFLAGS += ${_CPUCFLAGS} > # (-mfpmath= is not supported) > # > .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" > -CFLAGS_NO_SIMD.clang= -mno-avx > +CFLAGS_NO_SIMD.clang= -mno-avx -mno-avx2 > CFLAGS_NO_SIMD= -mno-mmx -mno-sse Nearby example of non-use for SSE. > .endif > CFLAGS_NO_SIMD += ${CFLAGS_NO_SIMD.${COMPILER_TYPE}} Testing shows that -mavx2 -mno-avx kills all AVX for clang in an example that only generates AVX instructions (-mavx2 enabls these as a subset). Bruce