[llvm] [AMDGPU] Encode op_sel_hi as zero for the V_PK 64-bit instructions (PR #230662)

Changpeng Fang via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 17:59:46 PDT 2026


================
@@ -534,6 +534,11 @@ bool isVOPC64DPP(unsigned Opc);
 LLVM_READONLY
 bool isVOPCAsmOnly(unsigned Opc);
 
+/// Returns true if this VOP3P opcode reserves the op_sel_hi bits, which must
+/// then be encoded as zero instead of defaulting to one.
+LLVM_READONLY
+bool zeroesOutOpSelHi(unsigned Opc);
----------------
changpeng wrote:

Renamed to hasNoOpSelHi to match SP3 OPF_NOOPSEL_HI.

https://github.com/llvm/llvm-project/pull/230662


More information about the llvm-commits mailing list