MUBUF lds opcodes may be selected even if lds modifier is not specified.
See bug 56755.
Details
Diff Detail
Unit Tests
Event Timeline
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp | ||
---|---|---|
4495–4498 | What do these lines achieve? |
Added a comment.
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp | ||
---|---|---|
4495–4498 | These lines exclude checks for cases when there are separate DMA opcodes. In these cases, incorrect opcode selection is not possible. GFX940 FLAT opcodes do not support lds modifier, but there are separate DMA opcodes global_load_lds_dword, etc. Likewise, GFX11 has buffer_load_lds_b32, etc; MUBUF lds modifier is not supported. |
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp | ||
---|---|---|
4495–4498 | OK. I thought those cases would be handled correctly anyway, because we would return true on line 4505, but maybe I am wrong. |
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp | ||
---|---|---|
4495–4498 | You are right, the check for MUBUF is optional, but GFX940 FLAT LDS opcodes have VALU=1. |
What do these lines achieve?