<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - __cpuid_count() not implemented in cpuid.h"
href="http://llvm.org/bugs/show_bug.cgi?id=16391">16391</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>__cpuid_count() not implemented in cpuid.h
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Headers
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mark.charney@intel.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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
inputs.
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>