<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56755>56755</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [AMDGPU][MC] Incorrect selection of LDS MUBUF opcodes
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:AMDGPU,
            mc
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            dpreobra
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          dpreobra
      </td>
    </tr>
</table>

<pre>
    MUBUF `lds` opcodes may be selected even if `lds` modifier is not specified.

An example of failed test:

    buffer_load_dword off, s[8:11], s3 offset:4          // Missing lds modifier

Expected output:

    An error.

Actual result:

    buffer_load_dword off, s[8:11], s3 offset:4 lds ; encoding: [0x04,0x00,0x51,0xe0,0x00,0x00,0x02,0x03]
                                        ; <MCInst #7198 BUFFER_LOAD_DWORD_LDS_OFFSET_vi

A fix is pending.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytUk2P2yAQ_TX2BTXC2MTJwYckTqqVNtpqt1GPFjbjhJYYC3Ca_fcdnI_NSj30UGT5wQww7w2vNvK92O6Wuw2JplRLh39i-sZIcOQo3kkNxIGGxoMkcIKOqPZh59FI1SqwRDnSGU9cD00IyElEy4guLv9FR-Asjr0GYlrSCqXxMg_OR-nicR_BUQ9tC7bSRshK_jZW4pE2YiviIr6c4YEkiXg5BtKQchBuych9RGyDH9kq51S3J0j0zvKx1vrcX0SZwffD35gE1tYa-1lK4wehiQU36P9JP9CM0iWBDluPvDFI8AQ90ww3I9AReDIC0MfgDdgF0lDgTuhfRigcpavt6qlzHhuY5sl8RtATm_Vr9fyyKKvyx8trWT2Xb9XLZvO2_l6d1KeukFadgwd66AL7SQxFMuWzecpZlsWySOU8nYvYK6-hQF2Lbfn12y4Q5cvtCpE8oXBr8UmudlOmC2bBkuRiz6sp48Hq4uB970L3x7feK38Y6kljjrjQ-nSDL701P_EqXKIZBnA44dOc8_hQ8KSeiSxLaMo4yykkYkpFwhGyuZgyEWtRg3aBa8RYLZpfqAwrXomz0GvsFDs2Yc7LWBWMMkZzliec0SydyLzJIZHTjDc5JrIoo3BE608CtYmx-9gWI8t62DtMauW8-0gKtO--A7gykL0FU1txrSYGfzC2uEXjUV8xivsD_yQa1w">