[flac-dev] SSE intrinsics disappearing from Clang 14+

Martijn van Beurden mvanb1 at gmail.com
Tue Sep 27 06:28:36 UTC 2022


Op ma 26 sep. 2022 om 07:26 schreef Martijn van Beurden <mvanb1 at gmail.com>:

> Op zo 25 sep. 2022 om 23:55 schreef Christian Weisgerber <
> naddy at mips.inka.de>:
>
>> The checks for SSE*/AVX* intrinsics in include/private/cpu.h are
>> suffering attrition with Clang 14 and newer.
>>
>> Clang 13: all are defined on x86: SSE, SSE2, SSSE3, SSE4.1, AVX, AVX2,
>> FMA.
>> Clang 14: SSSE3 and AVX disappear.
>> Clang 15: only SSE and SSE2 are left, I'm told.
>>
>> The suggestion at...
>>
>> https://lists.freebsd.org/archives/freebsd-current/2022-September/002633.html
>> ... is to check for _mm* intrinsics instead of __builtin_*.
>>
>
> 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.
>

I've opened a PR with a possible fix here:
https://github.com/xiph/flac/pull/469

Please comment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/flac-dev/attachments/20220927/5549282c/attachment.htm>


More information about the flac-dev mailing list