<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 header file invpcidintrin.h does not compile with vectorcall ABI"
href="https://bugs.llvm.org/show_bug.cgi?id=41503">41503</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang header file invpcidintrin.h does not compile with vectorcall ABI
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>8.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows 2000
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>code.optimizer@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Given the following trivial example:
Win64$ cat test_imm_vectorcall.c
#include <intrin.h>
int f(int i, int j) { return i+j; }
Win64$
It will not compile with the combination of vectorcall ABI and -march/-mtune =
skylake-avx512:
/c/Users/dparks/LLVM-8.0.0/bin/clang -c -c -mtune=skylake-avx512
-march=skylake-avx512 -Xclang -fdefault-calling-conv=vectorcall
test_imm_vectorcall.c
In file included from test_imm_vectorcall.c:1:
c:\Users\dparks\LLVM-8.0.0\lib\clang\8.0.0\include\intrin.h:181:14: error:
function declared 'cdecl' here was previously declared without calling
convention
void __cdecl _invpcid(unsigned int, void *);
^
c:\Users\dparks\LLVM-8.0.0\lib\clang\8.0.0\include\invpcidintrin.h:33:1: note:
previous declaration is here
_invpcid(unsigned int __type, void *__descriptor) {
^
1 error generated.
This problem also occurs with Clang 7.0.1, but does not occur with Clang 6.0.0.</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>