From: Mon P Wang Date: Tue, 17 May 2011 18:33:37 +0000 (+0000) Subject: Enable autodetect of popcnt X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fee22869ca8fc1b703f06eeb2e530345032fb2f3;p=oota-llvm.git Enable autodetect of popcnt git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131476 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index ba5864ef0e0..481e821030b 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -265,6 +265,7 @@ void X86Subtarget::AutoDetectSubtargetFeatures() { HasCLMUL = IsIntel && ((ECX >> 1) & 0x1); HasFMA3 = IsIntel && ((ECX >> 12) & 0x1); + HasPOPCNT = IsIntel && ((ECX >> 23) & 0x1); HasAES = IsIntel && ((ECX >> 25) & 0x1); if (IsIntel || IsAMD) {