Skip to content

Commit

Permalink
fixup! 092f12d
Browse files Browse the repository at this point in the history
GCC 14 and clang 18 require evex512; older compilers do not allow it
  • Loading branch information
dr-m committed May 21, 2024
1 parent 5095452 commit d133e91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/intel/intrin/crc32_avx512.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
# define USE_VPCLMULQDQ /* nothing */
#else
# include <cpuid.h>
# define TARGET "pclmul,avx512f,avx512dq,avx512bw,avx512vl,vpclmulqdq"
# if __GNUC__ >= 14 || (defined __clang_major__ && __clang_major__ >= 18)
# define TARGET "pclmul,evex512,avx512f,avx512dq,avx512bw,avx512vl,vpclmulqdq"
# else
# define TARGET "pclmul,avx512f,avx512dq,avx512bw,avx512vl,vpclmulqdq"
# endif
# define USE_VPCLMULQDQ __attribute__((target(TARGET)))
#endif

Expand Down

0 comments on commit d133e91

Please sign in to comment.