Re: SSE intrinsics disappearing from Clang 14+

Martijn van Beurden <[email protected]> Tue, 27 Sep 2022 08:28:36 +0200
Newsgroups gmane.comp.audio.compression.flac.devel
Message-ID <CADQbU6_S2LTS57CMfEaodWjiua=zem8p4tg+wp7p7SvoDR7p0g@mail.gmail.com>
Op ma 26 sep. 2022 om 07:26 schreef Martijn van Beurden <[email protected]>:

> Op zo 25 sep. 2022 om 23:55 schreef Christian Weisgerber <
> [email protected]>:
>
>> 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.

_______________________________________________
flac-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/flac-dev