<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 - Code generation fails with AESIMC intrinsic"
href="https://bugs.llvm.org/show_bug.cgi?id=34967">34967</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Code generation fails with AESIMC intrinsic
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>5.0
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pavel.kryukov@phystech.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19290" name="attach_19290" title="Bugpoint for Clang 3.8.0">attachment 19290</a> <a href="attachment.cgi?id=19290&action=edit" title="Bugpoint for Clang 3.8.0">[details]</a></span>
Bugpoint for Clang 3.8.0
Hello
I faced a code generator bug while compiling AES-NI instrinsics. That code is
compiled with GCC and Visual Studio without problems, but different versions of
Clang fail in different environments. I've attached clang-cl test case from
Clang 5.0.0. Unfortunately, I couldn't find a way to run -emit-llvm option with
Clang, so I'm sending bugpoint results for clang 3.8.0.
During my attempts to find a workaround I localized a problem a little with
some dummy code (see below). Finally, I got rid of pointer arithmetic, so
compilation becomes sucseeded.
__m128i tmp = _mm_setzero_si128();
tmp = _mm_aesimc_si128(*(++keysched));
// *(--invkeysched) = tmp; // uncommenting this line leads to failure
Thanks,
--
Pavel</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>