diff options
author | Freddy Ye <freddy.ye@intel.com> | 2022-10-31 23:01:31 +0800 |
---|---|---|
committer | Freddy Ye <freddy.ye@intel.com> | 2022-10-31 23:39:38 +0800 |
commit | aee2a35ac4ab4fe62bb0ce4e314966ab9207efd1 (patch) | |
tree | f9e3602907e3535ff0ab18de9dd491b71591db32 /llvm/lib/Support/Host.cpp | |
parent | 5af9e648ae10c50d94ab169f65907e12f210ec99 (diff) | |
download | llvm-aee2a35ac4ab4fe62bb0ce4e314966ab9207efd1.zip llvm-aee2a35ac4ab4fe62bb0ce4e314966ab9207efd1.tar.gz llvm-aee2a35ac4ab4fe62bb0ce4e314966ab9207efd1.tar.bz2 |
[X86] Add AVX-NE-CONVERT instructions.
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
Reviewed By: pengfei
Differential Revision: https://reviews.llvm.org/D135930
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 d1f01fc..70cae1e 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -1813,6 +1813,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) { Features["hreset"] = HasLeaf7Subleaf1 && ((EAX >> 22) & 1); Features["avxifma"] = HasLeaf7Subleaf1 && ((EAX >> 23) & 1) && HasAVXSave; Features["avxvnniint8"] = HasLeaf7Subleaf1 && ((EDX >> 4) & 1) && HasAVXSave; + Features["avxneconvert"] = HasLeaf7Subleaf1 && ((EDX >> 5) & 1) && HasAVXSave; Features["prefetchi"] = HasLeaf7Subleaf1 && ((EDX >> 14) & 1); bool HasLeafD = MaxLevel >= 0xd && |