<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylU01vnDAQ_TVwGRWxsB_sgQNdskmlpKqSTZtbZOwB3ABGHrNq_n2HjzR7aKWqtSzPDMO8ec_WFEa9ptfHp1UIVJuhUUBD3xvr4CyUsl6c02JNWUJpLJC0wskaTC-NQgrgVGsC3tSj1KVGBcUrYMdZ3VXwkOX5PZdfPV0dnm8-BfDZOARXCwe6Y8uFLeNwQC7gHoQO2oEcFAhefMWVEAZemHthNp-3t1_vQBBhWzRoQQ7WYucabvmDCTiasVG7mrPnC_Ij94uwGBx0hvsYV3txdtkCfq1F7HNjhHqm4pWpn1dedABGGA3F029edOQN5uWv68_RgvK7-vn8VmM3sZtVgOjULACERRjvyZk3Hiz24k6c1VWFlrgE0Fpjg39Tt9Bb2FEfjwz5e9OcWyiFbmhG9FUaq328F74YXG1sqnqLprDCH2yT1s71NN7wBFPxwwxFIE3LwQi0mA-9Nd_5_TjURAMSO5t4FW_9Ok3Eer8rZRmGa1zvhUp2yb5IBG4wUaKQ0m9EgQ2l3uajF0XFUPE58hwDIV-wU9w-u8uvvzy-Z1o5-pvc_3-GOo3CKApXvHbrfbQKMFpFyXYnt4mQWG5Cbx1iy_cVjDiBsZVv0wmSuRInG02O3pP8krrqECdBzNBp10zBomGTs393mO00vOxCpt6H15R_nN_jbXaCh8N9djrcvA2xPwlKJzU_AfpXRZQ>53136</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [AMDGPU][MC][GFX10] Add support of vaddr=saddr=off for FLAT SCRATCH opcodes
        </td>
    </tr>

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

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

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

<pre>
    GFX10 should support vaddr=saddr=off for scratch opcodes. This is specified by encoding SADDR=EXEC_HI. Note that in this mode inst.offset must be >= 0.

LLVM assembler currently expects that either vaddr=off or saddr=off but not both:

          scratch_load_sbyte v1, off, s3     // ok
          scratch_load_sbyte v1, v2, off     // ok

When both vaddr and saddr are set to off, the assembler triggers an error.

          scratch_load_sbyte v1, off, off    // sp3 ok, llvm fails

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydUkuPm0AM_jVwsYp4hGxy4EBDslspqap9tHtbDYyB6QKDxkPU_Puax-7m0EpVR6OxjbH9fbZzLS_J7eE58IFqPTQSaOh7bSychZTGiTJapC5LKLUBKoywRQ26L7RE8uCxVgR8qcdClQol5BfAjr2qq-AhzbJ7Dt8_73cvd188-Kotgq2FBdWx5MCW87BB1uMahBbagSzkCE6050jwPcfPHD-d3-Px-wkEEbZ5gwaKwRjsbMMlfzEAS3NuVLZm7_kK_Ij9yswHC53mOtrWTpRel4D3s5B9abSQL5RfGPo5cMIdcIZRUDT95oQHvqBf_zn-HC5Z_hQ_vz9q7CZ0MwsQnZwJgDAIY5-sfsPBZK96Yo2qKjTEIYDGaOP9H7sF3oKO-mhEyN-b5txCKVRDc0ZXJpHcRlvhWmUbTJz4c3rKbr89OXHG-mk3y2nNWIVUfqyZLv-6aYdj-ggPu_v0cXf3tm7uYJqktrancWYTsIpHPeReoVs2RmiL-NQb_ZM3gk1FNCCxEkdBtHbrJBL-Smy2ZbEufV8WWJbFVmC83cTROg_E2m1Ejg2NTJwwzIeK35H5aIjiFTvJ5ReO7562GPU4c1US-mHoB3xuVtsw8DAMws36plhvBNeKfWflY8v980acnjaVa5IJMlcidjaKLH04ebKq6nBq7JhfDLbWJpG9QZ0b4U70konbbzBhL-Q">