<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=34980">34980</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>-New Bugs
          </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=19308" name="attach_19308" title="LLVM output (BC file)">attachment 19308</a> <a href="attachment.cgi?id=19308&action=edit" title="LLVM output (BC file)">[details]</a></span>
LLVM output (BC file)

Hello

This is a duplicate of #34967 with simpler testing code.

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 simplified clang test case
from Clang 5.0.0.

Command line:

fatal error: error in backend: Cannot select: intrinsic %llvm.x86.aesni.aesimc
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 5.0.1-svn315836-1~exp1 (branches/release_50)
Target: x86_64-pc-linux-gnu</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>