<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylU8FymzAQ_Rq47NQDwphw4ODEtdOZeppJ02luHgmtQa1AjFbYzd93TUhzaC5pGYZd6c2-fQ-tlNNP1W77WIJ2SNC7AK08ITxcryOxfdivoZPDgBqCg6-7u3ugQdYIagwQWiQEj42hgJ5AegR5ksZKZRFORkKDgWHmoSkB01PwYx2M62kBGzyaHoGeOuWsqaGXHSs4Ov8XM_fGfmJlxHgYGZUE1Lpzz6SAv2Q3WC5WaN05ytZRsomS-Qv80OFZykFlAkhE4gba8yTt6vb74f7j7sB-D5-_RKJ8b9Htp_cW7f-l037uFOsq02VWyliOoXW-0oNHp7yMR2-rNoSBLv7Flt_GhHZUi9p1vLD29BI-DN79wDrw0hCNSJzkWZaVcVvVicbVCvOVFAVHXebpUeZFnpa6KGSiYj5dtFRF-XUkhJL1T-w1d1zvN7u7b7x1Ec-hqy95von_X5SpRCJEkoo0XS6vRLpYoi5yUdc6xULm5TJaJtjx3C0uPAvnm9hXE6UaG2LQ8hjRKyiJTNMjzh5efuCsN5hgJ2h2lG843988x8tF4QzWWr81t6-X5s_sxpOZanLyG2wdFPY>53339</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[AMDGPU][MC][GFX9] Add symbolic names for TBA/TMA registers
</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>
GFX9 does not have TBA/TMA mapped to SGPR space but these registers are available via getreg/setreg instructions. Define symbolic names for these registers to enable their use as shown in examples below:
s_getreg_b32 s2, hwreg(HW_REG_TBA_LO)
s_getreg_b32 s2, hwreg(HW_REG_TBA_HI)
s_getreg_b32 s2, hwreg(HW_REG_TMA_LO)
s_getreg_b32 s2, hwreg(HW_REG_TMA_HI)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydUsFu2zAM_Rr7QiywZTuJDj6kzZIOWLCia7HdAllibW2yZYhyuv79GDddD9ulMwST0gP53qPUePNc73ffJRiPBIOP0KkTwv3VJhG7-8MGejWOaCB6-Lq_vQMalUZopgixQ0II2FqKGAhUQFAnZZ1qHMLJKmgxMsx9aE7ADhTDpKP1Ay1gi492QKDnvvHOahhUzwoeffirM3PjMHdlxAaYGFUE1PmngZsC_lL96Li4QeefkmKTZNsku_yBPzq-SDk2hQASibiG7mmWtr75drz7uD-y3-PnL4mQ7y26-fTeosP_MB0uTKmpCyMLqdJoo8M6qa42h-3-9iGptpwfrl_i-UY5g40x_xrw2-3-GXI6BVd3MY50np_Y8Wpt7KZmoX3PG-dOr-HDGPwP1JG3lmhC4qQqikKmXV0aI_NivdZ6KWWhMpMbsyrFSi6VXC-NTPl1oKOz7kSIRumfOBhmvJgQs3kOvT7n1Ta1tciEyHKR52W5FvmiRLOqhNYmx5WqZJmUGfb86hZnaQsf2jTUs8pmaolBx_7oDVREth0QLwrMGNA3QV3Y1BQ7H-rX03T2V8_mfgMbeP8k">