<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 - intrinsic macro has ';' at the end"
href="https://bugs.llvm.org/show_bug.cgi?id=41932">41932</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>intrinsic macro has ';' at the end
</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>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>ntfs.hard@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Some intrinsic macro has a semicolon at the end therefore they can't be used
inside an expressions.
g++ could compile file:
#include <immintrin.h>
__m512 src, a, b;
__mmask16 k;
int main() {
_mm512_castps512_ps128( _mm512_mask_mul_round_ps (src, k, a, b,
(_MM_FROUND_TO_NEAREST_INT |_MM_FROUND_NO_EXC)) );
}
but clang++ reports error:
bug.cpp:9:29: error: unexpected ';' before ')'
_mm512_castps512_ps128( _mm512_mask_mul_round_ps (src, k, a, b,
(_MM_FROUND_TO_NEAREST_INT |_MM_FROUND_NO_EXC)) );
^
/usr/lib64/clang/7.0.1/include/avx512fintrin.h:2237:56: note: expanded from
macro '_mm512_mask_mul_round_ps'
(__v16sf)(__m512)(W));
Trunk seems still has this issue</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>