<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/100075>100075</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[AMDGPU] Assembler cannot handle v_mad_u32_u24 with relocated operand
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:AMDGPU
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jayfoad
</td>
</tr>
</table>
<pre>
With this [test case](https://github.com/user-attachments/files/16345638/r.txt) I get:
```
$ llc -mtriple=amdgcn -mcpu=gfx1100 r.txt -o - | llvm-mc -triple=amdgcn -mcpu=gfx1100
.text
.section .AMDGPU.config,"",@progbits
.long 47176
.long 1613692928
.long 47180
.long 0
.long 47200
.long 0
.long 4
.long 0
.long 8
.long 0
.text
.globl f
.p2align 8
.type f,@function
f:
v_dual_mov_b32 v1, 0 :: v_dual_and_b32 v0, 1, v0
s_delay_alu instid0(VALU_DEP_1)
unhandled operand type
UNREACHABLE executed at /home/jayfoad2/git/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp:8655!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
```
The instruction it fails on is `v_mad_u32_u24 v0, v0, 12, g0@abs32@lo`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVFtvrDYQ_jXel9GuzJjrAw9kd2krpVXUnrSPyNgGfGowss02-fcV7Oasopy2USUk23Pjm28u3HvdT0qVJHkgyWnHlzBYV37lr53lctda-Vr-ocMAYdAeSPIQlA8guFckORHMhxBmT1hFsCZY9zoMS3sQdiRYL165PQ-Bi2FUU_AE604btZ5RyuIkZTnB2h3CSyBYwE_Qq7BGoidCK5LS23d9YgzGCNiPwenZKMJOfJS9mGA_inkh7NR3L1FEKWzxYG9hDyQ7gjGXcT8K2P-H3-03tDgE9RLuL69E0HZar9XPpx-eng_CTp3uCR4J4vYdSUxnZ_tWB393NHbqCS3iLMrSD9IojVhaYIH59xxy-kH6URJnSD9l9wmbjyj-kY_e2NYQWnR30Yzc6H56Hye8zmoz2-jplulG46rv7lWmxaWRCzfNaC9NyxAuEcEjUFhNWAU3LZ_kVUtX7WZyuUP0jVSGvzbcLKAnH7SkBPPfq8fn5nR-aiKCxdV2mQY-SaMk2Fk5Pkm4wlx1z7_8eq6OP1YPj2dQL0osQUngAQjWgx0Vwfo2E3jtc4L11luzs1-VeHuuh24J1l-4W9sZ62vXrBc_PnHnlfsm_CY5iHkmrMrTJCEYXfE8PZ6r387gl3bUATi0Sw9OzdYFCBb-ZezeYLwHp71fttGDNW09CbNIBWFQIBz3A7Rc_BkcF-rw3fn7MqiNWrdsdQQdoOPaeFjvHkhKL83IZbMwbBaMb4W6lWudEegpiSlvPUMSU2NJSneyZLJgBd-pMsowyhBZzHZDKVmaZlIhS7M45arNUeSybeOuK3grVbTTJVKMaYaM5hEiO8g4iluZtVwlneC5IDFVI9fmsLJwsK7fbfmXEaU0S3aGt8r4beUhrpmrSRJWvZUK10Xoyo3Bdun9Clj74O_Rgg5mW5k3l-QElfdqbI1yIPg02QDXVoP3vPy1rlKnjBU83NtwtzhT_v-S3rK6lPh3AAAA__8wX7lX">