[AMDGPU] Remove SGPR-only SMEM real instructions on GFX10 and GFX11 (#247544)
On GFX10 and GFX11 there is no dedicated encoding for an SMEM
instruction with an SGPR offset and no immediate offset. It is encoded
in the same way as an SGPR offset plus a zero immediate offset, so there
were two real instructions with the same encoding.
Remove the SGPR-only real instructions and make the immediate offset
optional in the assembler for the SGPR+IMM ones instead, as is already
done on GFX12 and GFX13.
The assembler still accepts the same syntax and generates the same
encodings. The differences are:
- An SGPR offset is now always printed with "offset:0x0", by both the
assembler and the disassembler.
- An encoding with a zero immediate offset and the null register as
the SGPR offset is now disassembled as an immediate offset of 0x0
instead of as an SGPR offset of null.
Codegen is not affected because it already used the SGPR+IMM pseudos
on GFX9+.
Assisted-by: Claude Fable 5.2 <noreply@anthropic.com>