commit | d08fadd6628a061bca66d37d6e0de2c51249ad22 | [log] [tgz] |
---|---|---|
author | WangTianQing <tianqing.wang@intel.com> | Thu Apr 02 16:15:34 2020 +0800 |
committer | Xiang1 Zhang <xiang1.zhang@intel.com> | Thu Apr 02 16:19:23 2020 +0800 |
tree | aeab397a2e5822f575ca60f85b9baaea54f1a10a | |
parent | 9f92d4612fa3fc41cd1ab60ec905db7b69ca2ccc [diff] [blame] |
[X86] Add SERIALIZE instruction. Summary: For more details about this instruction, please refer to the latest ISE document: https://software.intel.com/en-us/download/intel-architecture-instruction-set-extensions-programming-reference Reviewers: craig.topper, RKSimon, LuoYuanke Reviewed By: craig.topper Subscribers: mgorny, hiraditya, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D77193
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index d7558fa..6b8f7ca 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp
@@ -1477,6 +1477,7 @@ Features["movdir64b"] = HasLeaf7 && ((ECX >> 28) & 1); Features["enqcmd"] = HasLeaf7 && ((ECX >> 29) & 1); + Features["serialize"] = HasLeaf7 && ((EDX >> 14) & 1); // There are two CPUID leafs which information associated with the pconfig // instruction: // EAX=0x7, ECX=0x0 indicates the availability of the instruction (via the 18th