[X86] Fix a missing `-` from AMX-FP16 feature string
authorPhoebe Wang <phoebe.wang@intel.com>
Sat, 22 Oct 2022 15:05:15 +0000 (23:05 +0800)
committerPhoebe Wang <phoebe.wang@intel.com>
Sat, 22 Oct 2022 15:08:07 +0000 (23:08 +0800)
Fixes #58545

llvm/lib/Support/Host.cpp

index 03f0a60..4f7c352 100644 (file)
@@ -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);