From 481df9d5c0e3297b31d82b6666143f065ec3cea1 Mon Sep 17 00:00:00 2001 From: Darin Morrison Date: Thu, 4 Jan 2024 13:12:52 -0700 Subject: [PATCH] cpufeatures: support more AVX512-related features (#1035) This PR adds support for the following features for x86_64: `GFNI` `VAES` `VPCLMULQDQ` `AVX512_BITALG` `AVX512_VPOPCNTDQ` --- cpufeatures/src/x86.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpufeatures/src/x86.rs b/cpufeatures/src/x86.rs index 958eff3e..07e3a9ce 100644 --- a/cpufeatures/src/x86.rs +++ b/cpufeatures/src/x86.rs @@ -144,4 +144,9 @@ __expand_check_macro! { ("avx512vl", "zmm", 1, ebx, 31), ("avx512vbmi", "zmm", 1, ecx, 1), ("avx512vbmi2", "zmm", 1, ecx, 6), + ("gfni", "zmm", 1, ecx, 8), + ("vaes", "zmm", 1, ecx, 9), + ("vpclmulqdq", "zmm", 1, ecx, 10), + ("avx512bitalg", "zmm", 1, ecx, 12), + ("avx512vpopcntdq", "zmm", 1, ecx, 14), }