Re: SIGILL when CPUTYPE set to anyting witjh avx and CFLAGS -O2
- In reply to: Harry Schmalzbauer : "Re: SIGILL when CPUTYPE set to anyting witjh avx and CFLAGS -O2"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 31 Dec 2023 11:28:55 UTC
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