From 213a7cda1fc775b26f94013982f252c08e57d15e Mon Sep 17 00:00:00 2001 From: Gabor Buella Date: Mon, 23 Apr 2018 20:00:59 +0000 Subject: [X86] movdiri and movdir64b instructions Reviewers: craig.topper llvm-svn: 330638 --- llvm/lib/Support/Host.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/Support/Host.cpp') 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 &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); -- cgit v1.2.3