https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108191
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- You are lying to the compiler, don't. In GCC you can #include <x86intrin.h> with SSE2 only and later in say __attribute__((target ("avx512cd"))) function use avx512f/avx512cd intrinsics, no need to do the what you show above.