<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] MTBUF syntax is incompatible with SP3"
   href="https://bugs.llvm.org/show_bug.cgi?id=37738">37738</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AMDGPU][MC] MTBUF syntax is incompatible with SP3
          </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>Currently MTBUF instructions have the following syntax:

    <op> vdata, vaddr, srsrc, dfmt, nfmt, soffset [modifiers]

Also note that dfmt and nfmt modifiers may be specified as numeric codes only.
For example:

    tbuffer_load_format_x v10, off, s[0:3], dfmt:1, nfmt:2, s0 glc

SP3 uses a different syntax:

    <op> vdata, vaddr, srsrc, soffset [modifiers] fmt

where fmt specifies both dfmt and nfmt in a symbolic form, e.g.:

    tbuffer_load_format_x v10, off, s[0:3], s0 glc format:[BUF_DATA_FORMAT_16]

This looks more logical and more convenient to me.

Should we change MTBUF syntax to be compatible with SP3?
This change will break existing code, is this acceptable?
What do you think?</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>