<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 - [AMDGPU][MC] Unaligned SGPR pairs/quads/etc are disassembled as if they were aligned"
   href="https://bugs.llvm.org/show_bug.cgi?id=36851">36851</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AMDGPU][MC] Unaligned SGPR pairs/quads/etc are disassembled as if they were aligned
          </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: AMDGPU
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dpreobrazhensky@luxoft.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This is a generic problem which affects both dst and src SGPR operands with
size greater than 32. These operands must be aligned to 2 or 4 so encoding an
odd register is incorrect and would trigger an exception if executed.

Our implementation defines only valid pairs of registers, e.g. s[0:1] but not
s[1:2] so correct disassembly is not possible. Currently disassembler issues a
warning and uses a nearest correctly aligned pair/quad of registers. (Due to
llvm disassembler quirk, the warning is not printed.)

Technically speaking, it is possible to define all incorrect register
pairs/quads etc but this looks like an overkill to me.

Personally I think current implementation is fine and needs no changes.

What is your opinion?</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>