From nobody Sun Dec 31 11:28:55 2023 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T2xhd49Ymz55Xmw for ; Sun, 31 Dec 2023 11:29:05 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:7400:8808:123::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4T2xhb6Sqsz3VY3; Sun, 31 Dec 2023 11:29:02 +0000 (UTC) (envelope-from jamie@catflap.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of jamie@catflap.org designates 2001:19f0:7400:8808:123::1 as permitted sender) smtp.mailfrom=jamie@catflap.org; dmarc=pass (policy=none) header.from=catflap.org X-Catflap-Envelope-From: X-Catflap-Envelope-To: dim@FreeBSD.org Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [209.250.224.51]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 3BVBStBR055671; Sun, 31 Dec 2023 11:28:55 GMT (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 3BVBStrp055670; Sun, 31 Dec 2023 11:28:55 GMT (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202312311128.3BVBStrp055670@donotpassgo.dyslexicfish.net> Date: Sun, 31 Dec 2023 11:28:55 +0000 Organization: Dyslexic Fish To: kostikbel@gmail.com, freebsd@omnilan.de Cc: freebsd-stable@FreeBSD.org, dim@FreeBSD.org Subject: Re: SIGILL when CPUTYPE set to anyting witjh avx and CFLAGS -O2 References: <72107B4B-F279-471B-8A8F-5B94C5EEDA47@FreeBSD.org> <62cc8fed-6acd-45fb-a138-ac7cd218191a@omnilan.de> In-Reply-To: User-Agent: Heirloom mailx 12.4 7/29/08 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [209.250.224.51]); Sun, 31 Dec 2023 11:28:55 +0000 (GMT) X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.79)[-0.792]; DMARC_POLICY_ALLOW(-0.50)[catflap.org,none]; R_SPF_ALLOW(-0.20)[+mx:dyslexicfish.net]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-stable@FreeBSD.org]; FREEMAIL_TO(0.00)[gmail.com,omnilan.de]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; HAS_ORG_HEADER(0.00)[]; FREEFALL_USER(0.00)[jamie]; ASN(0.00)[asn:20473, ipnet:2001:19f0:7400::/38, country:US]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4T2xhb6Sqsz3VY3 X-Spamd-Bar: --- Harry Schmalzbauer wrote: > My bad, sorry. > Confused machines. This indeed was wrong target CPU, stupid me. > Previously I tested tih CPUTYPE?=haswell, which editors/vim survives > currently. > Will run a base build with CPUTYPE?=haswell over the weekend and report > back. Can't you simply set the CPUTYPE to native? It should work it out automatically then. Here's the example results of a test program, to show what "native" enables: source [ https://www.catflap.org/jamie/freebsd/show-clang-native-features ] | jamie@catseye% show-clang-native-features | Clang "native" target for this machine: skylake (Triple: x86_64-unknown-freebsd12.1) | | Features enabled (+) : sse2, cx16, sahf, bmi2, fsgsbase, popcnt, aes, mmx, xsave, 64bit, invpcid, avx, cx8, fma, bmi, rdrnd, sse4.1, sse4.2, avx2, fxsr, sse, lzcnt, pclmul, f16c, ssse3, cmov, movbe, xsaveopt, sse3 | Features disabled (-) : tbm, avx512ifma, sha, gfni, fma4, vpclmulqdq, prfchw, cldemote, ptwrite, xsavec, avx512bitalg, movdiri, xsaves, avx512er, avx512vnni, avx512vpopcntdq, pconfig, clwb, avx512f, clzero, pku, lwp, rdpid, xop, rdseed, waitpkg, movdir64b, sse4a, avx512bw, clflushopt, avx512vbmi2, avx512vl, avx512cd, vaes, rtm, enqcmd, mwaitx, wbnoinvd, prefetchwt1, sgx, shstk, avx512vbmi, avx512bf16, avx512dq, adx, avx512pf | jamie@catwalk% show-clang-native-features | Clang "native" target for this machine: znver3 (Triple: x86_64-unknown-freebsd13.2) | | Features enabled (+) : cx16, sahf, sha, crc32, prfchw, bmi2, fsgsbase, popcnt, aes, xsaves, clwb, xsavec, clzero, pku, mmx, rdpid, rdseed, sse4a, clflushopt, xsave, 64bit, invpcid, avx, cx8, fma, bmi, rdrnd, sse4.1, sse4.2, avx2, fxsr, wbnoinvd, sse, lzcnt, pclmul, f16c, ssse3, cmov, movbe, xsaveopt, sse2, adx, sse3 | Features disabled (-) : avx512pf, tsxldtrk, tbm, avx512ifma, fma4, vpclmulqdq, cldemote, ptwrite, amx-tile, uintr, gfni, widekl, avx512bitalg, movdiri, avx512er, avxvnni, avx512fp16, avx512vnni, amx-bf16, avx512vpopcntdq, pconfig, avx512f, lwp, xop, waitpkg, kl, movdir64b, avx512bw, avx512vbmi2, avx512vl, serialize, hreset, avx512cd, vaes, avx512bf16, rtm, enqcmd, mwaitx, prefetchwt1, sgx, shstk, avx512vbmi, amx-int8, avx512vp2intersect, avx512dq