mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-12 14:21:25 -07:00
Fixed a theoretical edge case in AVX512VL support detection.
This commit is contained in:
@@ -128,7 +128,11 @@ init_cpu_features :: proc "c" () {
|
||||
try_set(&set, .avx512_er, 27, ebx7)
|
||||
try_set(&set, .avx512_cd, 28, ebx7)
|
||||
try_set(&set, .avx512_bw, 30, ebx7)
|
||||
try_set(&set, .avx512_vl, 31, ebx7)
|
||||
|
||||
// XMM/YMM are also required for 128/256-bit instructions
|
||||
if os_supports_avx {
|
||||
try_set(&set, .avx512_vl, 31, ebx7)
|
||||
}
|
||||
|
||||
try_set(&set, .avx512_vbmi, 1, ecx7)
|
||||
try_set(&set, .avx512_vbmi2, 6, ecx7)
|
||||
|
||||
Reference in New Issue
Block a user