[LLVMbugs] [Bug 16391] New: __cpuid_count() not implemented in cpuid.h

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 20 12:59:14 PDT 2013


            Bug ID: 16391
           Summary: __cpuid_count()  not implemented in cpuid.h
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Headers
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mark.charney at intel.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

GCC provides a mechanism to query leaf/subleaf of cpuid using the __cpuid_count
function which is a macro in the cpuid.h header file.

(MS provides another) From what I can see, there is
now way in clang to query the cpuid output using both the leaf and subleaf

This is required for checking for the presence of newer features on x86 cpus.

One can do ones own inline asm, but it is very error prone considering the
complexity fo the instruction and the registers it clobbers (which have
predefined uses on some systems or compilation styles). 

This is related to issue 12719 from 2012-05-01.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130620/c55e6663/attachment.html>

More information about the llvm-bugs mailing list