<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 - [AVX512] incorrect register in vpbroadcastb instruction"
   href="https://bugs.llvm.org/show_bug.cgi?id=33795">33795</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AVX512] incorrect register in vpbroadcastb instruction
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>enhancement
          </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>babokin@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18794" name="attach_18794" title="reproducer">attachment 18794</a> <a href="attachment.cgi?id=18794&action=edit" title="reproducer">[details]</a></span>
reproducer

clang trunk, x86 (32 bit mode).

Clang generates "vpbroadcastb    %ch, %xmm1" instruction (at least it intends
doing so). The instruction consumes 8 bit from general purpose register, but
only 32 registers are allowed. As a result, clang tries to encode
"vpbroadcastb    %ch, %xmm1" as 62 f2 7d 08 7a cd, which really is
"vpbroadcastb %ebp,%zmm1".

I assume instruction description is incorrect.

The instruction was generated by "Machine Instruction Scheduler on function"
pass, if this matters.

Reproducer isn't really small, check "run" file for instruction for compiling
it, they should be self explanatory.

Let me know if more details are needed.</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>