<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 - Cannot emit physreg copy instruction: cannot copy ZMM4 to RDI"
   href="https://bugs.llvm.org/show_bug.cgi?id=45906">45906</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cannot emit physreg copy instruction: cannot copy ZMM4 to RDI
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>9.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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Backend: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>vtjnash@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23480" name="attach_23480" title="input function">attachment 23480</a> <a href="attachment.cgi?id=23480&action=edit" title="input function">[details]</a></span>
input function

>From analysis of <a href="https://github.com/JuliaLang/julia/issues/35393">https://github.com/JuliaLang/julia/issues/35393</a>, caused by
some slightly confused combination of TargetMachine and optimization level
options.

We saw that the attached ll file generates the attached mir file, which fails
inside llvm::X86InstrInfo::copyPhysReg. Seems it should be dead code as I don't
see a use of the value, but due to incomplete coverage of register sizes it's
causing a crash on:

  renamable $rdi = COPY killed renamable $zmm4</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>