<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 - "error in backend: unknown codeview register" while compiling optimized AVX-512 code"
   href="https://bugs.llvm.org/show_bug.cgi?id=35306">35306</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"error in backend: unknown codeview register" while compiling optimized AVX-512 code
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>filip.strugar@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Using llvm/clang 5.0, pre-built 64bit binaries with VS2017

The AVX-512 code (-mavx512f -mavx512bw -mavx512dq) compiles in debug but in
release/optimized build dumps out the following error:

1>CL : fatal error : error in backend: unknown codeview register
1>clang-cl.exe : error : clang frontend command failed with exit code 70 (use
-v to see invocation)
1>clang version 5.0.0 (tags/RELEASE_500/final)
1>Target: x86_64-pc-windows-msvc
1>Thread model: posix
1>InstalledDir: C:\Program Files\LLVM\msbuild-bin
1>clang-cl.exe: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
1>clang-cl.exe: note: diagnostic msg:
1>********************
1>
1>PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
1>Preprocessed source(s) and associated run script(s) are located at:
1>clang-cl.exe: note: diagnostic msg:
C:\Users\fstrugar\AppData\Local\Temp\MaskedOcclusionCullingAVX512-18da46.cpp
1>clang-cl.exe: note: diagnostic msg:
C:\Users\fstrugar\AppData\Local\Temp\MaskedOcclusionCullingAVX512-18da46.sh
1>clang-cl.exe: note: diagnostic msg:
1>
1>********************  


The codebase in question is available publicly at
<a href="https://github.com/GameTechDev/MaskedOcclusionCulling">https://github.com/GameTechDev/MaskedOcclusionCulling</a> - the only modification
needed to trigger the compilation bug is to set USE_AVX512 to 1 in
<a href="https://github.com/GameTechDev/MaskedOcclusionCulling/blob/master/MaskedOcclusionCulling.h#L78">https://github.com/GameTechDev/MaskedOcclusionCulling/blob/master/MaskedOcclusionCulling.h#L78</a>
and compile the Release_LLVM configuration.</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>