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

        <tr>
          <th>Summary</th>
          <td>AVX-512dq: fatal error : error in backend: unknown codeview register
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.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>normal
          </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>angus.hewlett@roli.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21580" name="attach_21580" title="shell file for clang-cl execution">attachment 21580</a> <a href="attachment.cgi?id=21580&action=edit" title="shell file for clang-cl execution">[details]</a></span>
shell file for clang-cl execution

Note: possible duplicate of 38482 - unable to confirm at this time, as I'm
still on v7.0.1 (clang-cl Windows x64 prebuilt).

********************************************
Summary: 

Bug description: AVX512dq clang-cl crash during compilation
CL : fatal error : error in backend: unknown codeview register
clang frontend command failed with exit code 70
Compiling AVX512 code using clang-cl.

Command line options:
/MP /GS- /W3 /Gy /Zc:wchar_t /Zi /Gm- /Ox /Ob2 /Zc:inline /fp:fast  /fp:except-
/errorReport:prompt /GF- /WX- /Zc:forScope /GR /Gd /Oy- /Oi /MT /std:c++17 /FC
/EHa /nologo /Ot  /diagnostics:classic -mavx512dq

(Side-note: non-AVX512 versions of code following the same pattern compile fine
- SSE2, SSE4.1, AVX, AVX2-FMA are all OK).


*********************************************

Full error report:



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 7.0.1 (tags/RELEASE_701/final)
1>Target: x86_64-pc-windows-msvc
1>Thread model: posix
1>InstalledDir: C:\Program Files\LLVM\bin
1>clang-cl.exe: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</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\Angus\AppData\Local\Temp\DispatchAVX512-f040c6.cpp
1>clang-cl.exe: note: diagnostic msg:
C:\Users\Angus\AppData\Local\Temp\DispatchAVX512-f040c6.sh
1>clang-cl.exe: note: diagnostic msg:
1>
1>********************

Shell file attached - cannot attach the preprocessed *.cpp file due to its
size. Please contact me if you'd like to inspect the preprocessed .cpp (about
2MB compressed, 18MB uncompressed).</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>