[llvm] 363047b - [X86] Fix a missing `-` from AMX-FP16 feature string
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 22 08:08:16 PDT 2022
Author: Phoebe Wang
Date: 2022-10-22T23:08:07+08:00
New Revision: 363047bef1dfd554165fcfc71176a124034d6288
URL: https://github.com/llvm/llvm-project/commit/363047bef1dfd554165fcfc71176a124034d6288
DIFF: https://github.com/llvm/llvm-project/commit/363047bef1dfd554165fcfc71176a124034d6288.diff
LOG: [X86] Fix a missing `-` from AMX-FP16 feature string
Fixes #58545
Added:
Modified:
llvm/lib/Support/Host.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index 03f0a6059dc19..4f7c352bac30c 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -1807,7 +1807,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) {
MaxLevel >= 7 && !getX86CpuIDAndInfoEx(0x7, 0x1, &EAX, &EBX, &ECX, &EDX);
Features["avxvnni"] = HasLeaf7Subleaf1 && ((EAX >> 4) & 1) && HasAVXSave;
Features["avx512bf16"] = HasLeaf7Subleaf1 && ((EAX >> 5) & 1) && HasAVX512Save;
- Features["amxfp16"] = HasLeaf7Subleaf1 && ((EAX >> 21) & 1) && HasAMXSave;
+ Features["amx-fp16"] = HasLeaf7Subleaf1 && ((EAX >> 21) & 1) && HasAMXSave;
Features["hreset"] = HasLeaf7Subleaf1 && ((EAX >> 22) & 1);
Features["prefetchi"] = HasLeaf7Subleaf1 && ((EDX >> 14) & 1);
More information about the llvm-commits
mailing list