Date: Sun, 31 Dec 2023 11:28:55 +0000 From: Jamie Landeg-Jones <jamie@catflap.org> 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 Message-ID: <202312311128.3BVBStrp055670@donotpassgo.dyslexicfish.net> In-Reply-To: <e78df80b-f1b1-4297-b681-5db43e07bac0@omnilan.de> References: <accdf012-1b04-4227-9b0c-a78e94133fc2@omnilan.de> <72107B4B-F279-471B-8A8F-5B94C5EEDA47@FreeBSD.org> <62cc8fed-6acd-45fb-a138-ac7cd218191a@omnilan.de> <ZY8qA7SKywXh_Yac@kib.kiev.ua> <e78df80b-f1b1-4297-b681-5db43e07bac0@omnilan.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Harry Schmalzbauer <freebsd@omnilan.de> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312311128.3BVBStrp055670>