<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 --- - [AVX-512] llc generates incorrect code"
   href="https://llvm.org/bugs/show_bug.cgi?id=25518">25518</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AVX-512] llc generates incorrect code
          </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>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15285" name="attach_15285" title="Reproducer.">attachment 15285</a> <a href="attachment.cgi?id=15285&action=edit" title="Reproducer.">[details]</a></span>
Reproducer.

llc produces incorrect code

Compile with clang++ func.cpp -std=c++11 -march=knl -O3 -c

fatal error: error in backend: Cannot select: 0x4b4acd0: v4i64 = bitcast
0x4b232d0
  0x4b232d0: v8i64,ch = load<LD16[bitcast (i16* getelementptr inbounds ([6641 x
i16], [6641 x i16]* @in_lp6_5, i64 0, i64 226) to <8 x
i16>*)](align=4)(tbaa=<0x49e66c8>), sext from v8i16> 0x4b1ed50, 0x4b4c700,
undef:i64
    0x4b4c700: i64 = X86ISD::Wrapper TargetGlobalAddress:i64<[6641 x i16]*
@in_lp6_5> + 452
      0x4b1f050: i64 = TargetGlobalAddress<[6641 x i16]* @in_lp6_5> + 452
    0x4b12cf0: i64 = undef
In function: _Z3foov
clang-3.8: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.8.0 (trunk 251403)
Target: x86_64-unknown-linux-gnu
Thread model: posix</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>