Date: Thu, 23 Feb 2023 22:14:13 +0000 From: Jamie Landeg-Jones <jamie@catflap.org> To: pmc@citylink.dinoex.sub.org, jamie@catflap.org Cc: freebsd-stable@freebsd.org Subject: Re: 13.2-BETA2: xz: illegal instruction Message-ID: <202302232214.31NMEDVL026598@donotpassgo.dyslexicfish.net> In-Reply-To: <Y/eO1mesdOy1QWW%2B@disp.intra.daemon.contact> References: <Y/VaKbBm4ekNobDO@disp.intra.daemon.contact> <202302231422.31NEM1dn001786@donotpassgo.dyslexicfish.net> <Y/eO1mesdOy1QWW%2B@disp.intra.daemon.contact>
next in thread | previous in thread | raw e-mail | index | archive | help
Peter <pmc@citylink.dinoex.sub.org> wrote: > -target-cpu westmere > > But when building with CPTYPE?=native, the code works! That's weird! I notice the only difference between those 2 is that the "native" one specifically sets (-target-feature +...) or unsets (-target-feature -...) the features to use. Presumably there is something enabled by default that shouldn't be (for westmere), but the extra flags added with "native" fix that. This is more a question for the clang folks, but if you're really interested, you could try (on your -march=westmere build) disabling them in ever decreasing group sizes until you narrow down the culprit! This is what your native enables: +64bit +cmov +crc32 +cx16 +cx8 +fxsr +mmx +popcnt +sahf +sse +sse2 +sse3 +sse4.1 +sse4.2 +ssse3 And this is what it disables: -adx -aes -amx-bf16 -amx-int8 -amx-tile -avx -avx2 -avx512bf16 -avx512bitalg -avx512bw -avx512cd -avx512dq -avx512er -avx512f -avx512fp16 -avx512ifma -avx512pf -avx512vbmi -avx512vbmi2 -avx512vl -avx512vnni -avx512vp2intersect -avx512vpopcntdq -avxvnni -bmi -bmi2 -cldemote -clflushopt -clwb -clzero -enqcmd -f16c -fma -fma4 -fsgsbase -gfni -hreset -invpcid -kl -lwp -lzcnt -movbe -movdir64b -movdiri -mwaitx -pclmul -pconfig -pku -prefetchwt1 -prfchw -ptwrite -rdpid -rdrnd -rdseed -rtm -serialize -sgx -sha -shstk -sse4a -tbm -tsxldtrk -uintr -vaes -vpclmulqdq -waitpkg -wbnoinvd -widekl -xop -xsave -xsavec -xsaveopt -xsaves Cheers, Jamie
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302232214.31NMEDVL026598>