Skip to content

Commit 1ffdfbe

Browse files
authored
cpufeatures: add support for detecting AVX-512 (#862)
Adds support for detecting the following features: - `avx512f` - `avx512dq` - `avx512ifma` - `avx512pf` - `avx512er` - `avx512cd` - `avx512bw` - `avx512vl` CPUID bitflags obtained from this table: https://en.wikichip.org/wiki/x86/avx-512#Detection Closes #815
1 parent b05b15a commit 1ffdfbe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cpufeatures/src/x86.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,15 @@ __expand_check_macro! {
9999
("bmi1", 1, ebx, 3),
100100
("avx2", 0, ecx, 28, 1, ebx, 5),
101101
("bmi2", 1, ebx, 8),
102+
("avx512f", 1, ebx, 16),
103+
("avx512dq", 1, ebx, 17),
102104
("rdseed", 1, ebx, 18),
103105
("adx", 1, ebx, 19),
106+
("avx512ifma", 1, ebx, 21),
107+
("avx512pf", 1, ebx, 26),
108+
("avx512er", 1, ebx, 27),
109+
("avx512cd", 1, ebx, 28),
104110
("sha", 1, ebx, 29),
111+
("avx512bw", 1, ebx, 30),
112+
("avx512vl", 1, ebx, 31),
105113
}

0 commit comments

Comments
 (0)