<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op zo 25 sep. 2022 om 23:55 schreef Christian Weisgerber <<a href="mailto:naddy@mips.inka.de">naddy@mips.inka.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The checks for SSE*/AVX* intrinsics in include/private/cpu.h are<br>
suffering attrition with Clang 14 and newer.<br>
<br>
Clang 13: all are defined on x86: SSE, SSE2, SSSE3, SSE4.1, AVX, AVX2, FMA.<br>
Clang 14: SSSE3 and AVX disappear.<br>
Clang 15: only SSE and SSE2 are left, I'm told.<br>
<br>
The suggestion at...<br>
<a href="https://lists.freebsd.org/archives/freebsd-current/2022-September/002633.html" rel="noreferrer" target="_blank">https://lists.freebsd.org/archives/freebsd-current/2022-September/002633.html</a><br>
... is to check for _mm* intrinsics instead of __builtin_*.<br></blockquote><div><br></div><div>Maybe at this point it is reasonable to just start assuming support? That would mean dropping support (with default settings that is) on x86_64 for all Clang that do not supply AVX/AVX2/FMA intrinsics? That is how it works for GCC currently, intrinsics are supported for GCC 4.9 or later.<br></div></div></div>