<html>
<head>
<base href="https://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 --- - X86 intrinsic _mm_clmulepi64_si128 crashes with selection error" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24087&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=bMwkM7fqkU1F_f0elJ8ei68-WoRnZmpBavqoQmItjfY&s=FGR3I28K-RS3WRpSW_JMp1K-C8NrK4htwKWJFQRwR_o&e=">24087</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>X86 intrinsic _mm_clmulepi64_si128 crashes with selection error
</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>Linux
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>paul_robinson@playstation.sony.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>Clang 3.6 reports an "undeclared identifier" for this intrinsic,
if PCLMUL isn't enabled; current TOT crashes with "Cannot select."
~/projects/scratch$ cat pclmul-crash.cpp
#include <x86intrin.h>
__m128i foo(__m128i a, __m128i b) {
return _mm_clmulepi64_si128(a, b, 0x10);
}
~/projects/scratch$ $LL36/clang -c pclmul-crash.cpp -mpclmul
~/projects/scratch$ $LL36/clang -c pclmul-crash.cpp -mno-pclmul
pclmul-crash.cpp:4:10: error: use of undeclared identifier
'_mm_clmulepi64_si128'
return _mm_clmulepi64_si128(a, b, 0x10);
^
1 error generated.
~/projects/scratch$ $LL37/clang -c pclmul-crash.cpp -mpclmul
~/projects/scratch$ $LL37/clang -c pclmul-crash.cpp -mno-pclmul
fatal error: error in backend: Cannot select: intrinsic %llvm.x86.pclmulqdq
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 3.7.0 (trunk 241887)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_bugs_&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=bMwkM7fqkU1F_f0elJ8ei68-WoRnZmpBavqoQmItjfY&s=gA-pVinODRwHElD7mLjdX1NkHTA_aTuVHA6iWnlmxTE&e=">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/pclmul-crash-cea03f.cpp
clang: note: diagnostic msg: /tmp/pclmul-crash-cea03f.sh
clang: note: diagnostic msg:
********************</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>