[llvm] [AMDGPU][True16][MC] fix opsel for v_cmpx 16bit inst (PR #135441)
Joe Nash via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 16 08:24:38 PDT 2025
================
@@ -1220,6 +1220,10 @@ void AMDGPUInstPrinter::printPackedModifier(const MCInst *MI,
(ModIdx != -1) ? MI->getOperand(ModIdx).getImm() : DefaultValue;
}
+ const bool HasDst =
+ (AMDGPU::getNamedOperandIdx(Opc, AMDGPU::OpName::vdst) != -1) ||
+ (AMDGPU::getNamedOperandIdx(Opc, AMDGPU::OpName::sdst) != -1);
----------------
Sisyph wrote:
I agree, I don't think we have the use/def info at this point. LGTM
https://github.com/llvm/llvm-project/pull/135441
More information about the llvm-commits
mailing list