Re: Did clang 14 lose some intrinsics support?

From: Christian Weisgerber <naddy_at_mips.inka.de>
Date: Sun, 25 Sep 2022 21:38:10 UTC
Dimitry Andric:

> > See https://github.com/llvm/llvm-project/commit/e5147f82e1cb
> > 
> > - Instead of __builtin_ia32_pabsd128 maybe use _mm_abs_epi32
> > - Instead of __builtin_ia32_pabsd256 maybe use _mm256_abs_epi32
> 
> I'm wondering why this rather fragile method is chosen? If you want to
> know whether SSE is supported, you check for __SSE__, and similarly
> __SSE2__, __AVX__ and a bunch of others. That is also portable to gcc.

__AVX__, for instance, is not defined unless you compile with -mavx,
which also allows the compiler to issue AVX instructions during
normal code generation.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de