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

    <tr>
        <th>Summary</th>
        <td>
            [AMDGPU][MC][GFX11] v_dot2_f16_f16 and v_dot2_bf16_bf16 do not accept SGPRs for src operands
        </td>
    </tr>

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

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

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

<pre>
    These instructions do not accept `SGPRs` for src operands.

An example of failed test:

    v_dot2_bf16_bf16 v5, s1, v2, v3

Expected result:

    0x05,0x00,0x67,0xd6,0x01,0x04,0x0e,0x04

Actual output:

    error: invalid operand for instruction

I'm not sure if this is a bug, but SP3 seems to accept `SGPRs` for src operands.

Added @Sisyph for awareness.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUlGP2yAM_jXJC1oFJJDkIQ_ddVft4aRqt0l7O5HgNGw0RJh0vX8_Qlet093LEPJngzH2Z3dOv7ZfR0AgZsLglz4YNyHRjkwuENX3MAeSSfq8P3zBiGRwnqDviZvBq0njJqO7jG6vcjsRuKjTbIG4gQzKWNAkAIas2N77kbjOL9oF_tINTCZBziLjDwTZKs88yeL-0afLDH2IAT3gYt8LSS90jRGBJpBVAi2vh-wK5RXgZt3n34dFWeKWMC_vfQDeOx_PI1lnZY2-sZBYuSPw_t3njFenxCYuPtI8kDAaJHEr0i3Htc5uCeT5UBAEOCEJ7v951zrykpX02eDrPCZn9Ut5mABvnjm0TIqmqISoZa7bQjdFo_JggoU2Ex-3T7v94VsmdlF_erji_vE7Y1G9NWvt1dqqteQ3_ft3ZlLib7LOF2_bMYQZV3b5Y9xHE8al2_TuFA1rzzf4MHv3IzY8mgZxAYyKkLVk-dg2hRwaRWutJC9KXg3A6gporYRkJevr3KoOLK5lZZx3qv8Jk44__qmRp-mKcOpXXexy03LKOa0pY1XRlGIz1IKJqpMNo6UWdRW5hVOc582a2sb5Y-7blGVsIcZLazDg30uFaI4TJGLX-GoJo_Otnj24zqs8VdSmcn4D4ZUOIg">