[llvm] [AMDGPU][MC] Support src modifiers for v_mov_b32 and v_movrel* instructions (PR #76498)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 05:09:10 PST 2024


================
@@ -384,7 +403,12 @@ class VOP_MOVREL<RegisterOperand Src1RC> : VOPProfile<[untyped, i32, untyped, un
 
   let Outs = (outs);
   let Ins32 = (ins Src0RC32:$vdst, Src1RC:$src0);
-  let Ins64 = (ins Src0RC64:$vdst, Src1RC:$src0);
+
+  let Ins64 = !con((ins Src0RC64:$vdst),
----------------
ankurepa wrote:

V_MOVRELD and V_MOVRELSD use the same profile, however they can't use the same type of src_modifier so that's why !if is used in Ins64 and Src0Mod

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


More information about the llvm-commits mailing list