<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 --- - llc fails on AVX512" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23630&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=fYjy_ad2sN5_3GNFkIJsc96TXQv5AtyG6EouYM6LlwE&s=hErvOk3v9q7ASe_tC5_djd-1DsgC4oai7EO4QKtMlvU&e=">23630</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llc fails on AVX512
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </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>llc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Vsevolod.Livinskij@frtk.ru
          </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>Created <span class=""><a href="attachment.cgi?id=14368" name="attach_14368" title="Reproducer.">attachment 14368</a> <a href="attachment.cgi?id=14368&action=edit" title="Reproducer.">[details]</a></span>
Reproducer.

When I compile with llc -mcpu=knl repr.ll it wails with error, while with
-mcpu=core-avx2 it works fine.

LLVM ERROR: Cannot select: 0x353a690: i1 = sub 0x353ac80, 0x353eac0 [ORD=4]
[ID=12]
  0x353ac80: i1,ch = CopyFromReg 0x34dd320, 0x353e990 [ORD=2] [ID=7]
    0x353e990: i1 = Register %vreg1 [ID=1]
  0x353eac0: i1 = X86ISD::VEXTRACT 0x3539e40, 0x353a7c0 [ORD=3] [ID=11]
    0x3539e40: v16i1 = X86ISD::VSRLI 0x3539f70, 0x353ab50 [ORD=3] [ID=10]
      0x3539f70: v16i1 = X86ISD::VSHLI 0x353a8f0, 0x353ab50 [ORD=3] [ID=9]
        0x353a8f0: v16i1,ch = CopyFromReg 0x34dd320, 0x353aa20 [ORD=3] [ID=8]
          0x353aa20: v16i1 = Register %vreg0 [ID=2]
        0x353ab50: i8 = Constant<15> [ID=6]
      0x353ab50: i8 = Constant<15> [ID=6]
    0x353a7c0: i64 = Constant<0> [ID=3]
In function: f_f

llc -version
LLVM (<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=fYjy_ad2sN5_3GNFkIJsc96TXQv5AtyG6EouYM6LlwE&s=E_2lHArRB9AGQYQZjbp_H4ZvkazmWZVcJblcelb9tEI&e=">http://llvm.org/</a>):
  LLVM version 3.7.0svn
  Optimized build with assertions.
  Built May 21 2015 (15:01:04).
  Default target: x86_64-unknown-linux-gnu
  Host CPU: sandybridge

clang version 3.7.0 (trunk 237892)</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>