diff options
author | Phoebe Wang <phoebe.wang@intel.com> | 2022-10-27 17:08:49 +0800 |
---|---|---|
committer | Phoebe Wang <phoebe.wang@intel.com> | 2022-10-27 17:20:07 +0800 |
commit | b51b90d6e25c3a3129608e2d764cae8818b7ad15 (patch) | |
tree | af96038ad0f6581dac4391645e004b0d2995dd26 /llvm/lib/Support/Host.cpp | |
parent | bf531f28f51a32e8f130ca1e6ce8d689315341d8 (diff) | |
download | llvm-b51b90d6e25c3a3129608e2d764cae8818b7ad15.zip llvm-b51b90d6e25c3a3129608e2d764cae8818b7ad15.tar.gz llvm-b51b90d6e25c3a3129608e2d764cae8818b7ad15.tar.bz2 |
[X86][1/2] SUPPORT RAO-INT
For more details about these instructions, please refer to the latest ISE document: https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html
Initial authored by Liu Chen (@LiuChen3)
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D135951
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r-- | llvm/lib/Support/Host.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 9492db3..fac2b01 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -1805,6 +1805,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) { Features["amx-int8"] = HasLeaf7 && ((EDX >> 25) & 1) && HasAMXSave; bool HasLeaf7Subleaf1 = MaxLevel >= 7 && !getX86CpuIDAndInfoEx(0x7, 0x1, &EAX, &EBX, &ECX, &EDX); + Features["raoint"] = HasLeaf7Subleaf1 && ((EAX >> 3) & 1); Features["avxvnni"] = HasLeaf7Subleaf1 && ((EAX >> 4) & 1) && HasAVXSave; Features["avx512bf16"] = HasLeaf7Subleaf1 && ((EAX >> 5) & 1) && HasAVX512Save; Features["amx-fp16"] = HasLeaf7Subleaf1 && ((EAX >> 21) & 1) && HasAMXSave; |