dst_sel and dst_unused disabled for VOPC as they have no effect on result
Details
Diff Detail
Event Timeline
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp | ||
---|---|---|
2796–2797 | I am curious -- why 6? suggest adding a comment. |
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp | ||
---|---|---|
2796–2797 | This is default value for SDWA src_sel operand. We don't add any comments in any other places so I don't think it is reasonable to add it here. Possibly we should refactor out all default values but it is out of scope of this change. |
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp | ||
---|---|---|
2800–2801 | So this will crash if you try to use this with an SALU instruction? This should probably be a report_fatal_error, or better if you can get to the diagnostic handler. There should also be a test for this |
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp | ||
---|---|---|
2800–2801 | This method is called only by LLVM generated AsmMatcher only for SDWA which are only VOP1/2/C. This llvm_unreachable is needed only as default case for switch. |
I am curious -- why 6? suggest adding a comment.