<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - clang-cl's intrin.h does not include several intrinsics for aarch64"
href="https://bugs.llvm.org/show_bug.cgi?id=38726">38726</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-cl's intrin.h does not include several intrinsics for aarch64
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</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>froydnj@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dmajor@mozilla.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Compiling a non-trivial file in Firefox with `clang-cl
--target=aarch64-pc-windows-msvc` gives:
In file included from
c:/mozilla-central/build/win32/crashinjectdll/crashinjectdll.cpp:6:
In file included from c:/mozilla-central/INC6\windows.h:171:
In file included from c:/mozilla-central/INC5\windef.h:24:
In file included from c:/mozilla-central/INC5\minwindef.h:182:
c:/mozilla-central/INC6\winnt.h(5832,21): error: use of undeclared identifier
'_ReadStatusReg'
return (DWORD64)_ReadStatusReg(ARM64_PMCCNTR_EL0);
^
c:/mozilla-central/INC6\winnt.h(5849,5): error: use of undeclared identifier
'_WriteStatusReg'
_WriteStatusReg(ARM64_PMSELR_EL0, Counter);
^
c:/mozilla-central/INC6\winnt.h(5850,21): error: use of undeclared identifier
'_ReadStatusReg'
return (DWORD64)_ReadStatusReg(ARM64_PMXEVCNTR_EL0);
^
c:/mozilla-central/INC6\winnt.h(22063,27): error: use of undeclared identifier
'__getReg'
return (struct _TEB *)__getReg(18);
^
c:/mozilla-central/INC6\winnt.h(22072,23): error: use of undeclared identifier
'__getReg'
return ((PNT_TIB )__getReg(18))->FiberData;
The small sample of files that I have attempted to compile indicate that these
are the only problematic intrinsics.</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>