<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 requires SVML intrinsics for VS2019 compatibility"
href="https://bugs.llvm.org/show_bug.cgi?id=40701">40701</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-cl requires SVML intrinsics for VS2019 compatibility
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>neumann@imt.uni-luebeck.de
</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>with VS 2019 SVML intrinsic "svmlintrin.h" are included by immintrin.h.
As such clang-cl needs to support SVML intrinsics to be compatible with VS2019.
Small Code example:
#include <immintrin.h>
#include <array>
#include <iostream>
int main()
{
using Vector = std::array<double, 4>;
Vector MyData;
Vector SinData;
Vector CosData;
MyData = { 0.0, 1.31, -3.21, 0.51};
*(__m256d*)(SinData.data()) = _mm256_sincos_pd((__m256d*)CosData.data(),
*(__m256d*)(MyData.data()));
for (auto elem : SinData)
{
std::cout << elem << '\t';
}
std::cout << '\n';
for (auto elem : CosData)
{
std::cout << elem << '\t';
}
std::system("pause");
return 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>