diff options
author | Gabor Buella <gabor.buella@intel.com> | 2018-04-23 20:00:59 +0000 |
---|---|---|
committer | Gabor Buella <gabor.buella@intel.com> | 2018-04-23 20:00:59 +0000 |
commit | 213a7cda1fc775b26f94013982f252c08e57d15e (patch) | |
tree | 87ff0a7bf2820e0cb57b39dc449dea3d29dd663f /llvm/lib/Support/Host.cpp | |
parent | b387b6e6dc3a7b1b1a9b5551109d124ce2afda76 (diff) | |
download | bcm5719-llvm-213a7cda1fc775b26f94013982f252c08e57d15e.tar.gz bcm5719-llvm-213a7cda1fc775b26f94013982f252c08e57d15e.zip |
[X86] movdiri and movdir64b instructions
Reviewers: craig.topper
llvm-svn: 330638
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r-- | llvm/lib/Support/Host.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 5a55e555f9c..1a0dc7f4eec 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -1264,6 +1264,10 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) { Features["ibt"] = HasLeaf7 && ((EDX >> 20) & 1); + // Direct move instruction support. + Features["movdiri"] = HasLeaf7 && ((ECX >> 27) & 1); + Features["movdir64b"] = HasLeaf7 && ((ECX >> 28) & 1); + bool HasLeafD = MaxLevel >= 0xd && !getX86CpuIDAndInfoEx(0xd, 0x1, &EAX, &EBX, &ECX, &EDX); |