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

    <tr>
        <th>Summary</th>
        <td>
            [AMDGPU][MC] Image instructions with 16-bit gradients should be supported on GFX10 only
        </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>
    image_sample_*_g16 instructions are not supported on GFX6-GFX9.
However they are accepted by assembler.

An example of failed test:

    image_sample_c_cd_cl_g16 v[5:6], v[1:5], s[8:15], s[12:15] dmask:0x3

Expected result:

    error: instruction not supported on this GPU

Actual result (GFX9):

    image_sample_c_cd_cl_g16 v[5:6], v[1:5], s[8:15], s[12:15] dmask:0x3 ; encoding: [0x01,0x03,0xac,0xf1,0x01,0x05,0x62,0x00]


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFU8GOmzAQ_Rq4WImMwRQOHJJNd9vDSr1U6i2yzQDuGoxsk03-vmOWVbPa3osQ4zcez7w3HqRtb40eRQ9nL8bZwDlhh3OflURPPrhFBW0nT4QDMtlA_DLP1gVoiZ3I0-Ovcoefep_QU0IP3-wrXMCRMMBtPSGUgjkGS8TewygNuC347XuYCFzXusR2pBPaYHQAH5L8cB9H8PnAUp1Ve1ZmZXpJ-JHjgTLhp4Q9rDhDzDfsEVeIs3tHxt49pB2Ff0FEr_l9za_XGVRk78Av5l-MwDnr0H_fq89tCoP25OnHzw-6VViE2TKThFWxjQmr_5NskuRHApOyrZ76KAgj6ZVmeApNvhqhVtNtzs3w1ZTsDdFY6Y5_2jZ5W-e1SIMOBhpMe3g-xV5gHD8-P0Qe36PAj-P2qsNAsnIndSC9E62GKXjiB7sYHCb4NIYZxYW5pYszzRDC7GMf2SO-PWZa5F7ZEYExl3ezm539jdeLUHu_gMcFL76ULB2amqu2AlHLqih5zTKWyTKrgHMpO54pmRohwfioJmFMCvUCU4sVN2ksNgPvlI0qrvkp1Q2jjNGC8owXBav2itGuqxRVUIBoWZEUFEYc_n2ktreuT12zspRL73HTaB_83038l3Q_wdrPmF8sYbCuaWcHVjqRroqaVc4f8fAnyQ">