Skip to content

Commit b9a8b40

Browse files
committed
Address more comments.
1 parent e28c323 commit b9a8b40

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

llvm/lib/TargetParser/Host.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,8 +1876,8 @@ const StringMap<bool> sys::getHostCPUFeatures() {
18761876
MaxLevel >= 0x19 && !getX86CpuIDAndInfo(0x19, &EAX, &EBX, &ECX, &EDX);
18771877
Features["widekl"] = HasLeaf7 && HasLeaf19 && ((EBX >> 2) & 1);
18781878

1879-
bool HasLeaf1E =
1880-
MaxLevel >= 0x1e && !getX86CpuIDAndInfo(0x1e, &EAX, &EBX, &ECX, &EDX);
1879+
bool HasLeaf1E = MaxLevel >= 0x1e &&
1880+
!getX86CpuIDAndInfoEx(0x1e, 0x1, &EAX, &EBX, &ECX, &EDX);
18811881
Features["amx-fp8"] = HasLeaf1E && ((EAX >> 4) & 1) && HasAMXSave;
18821882

18831883
bool HasLeaf24 =
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)