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

Joe Nash via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 08:40:01 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),
----------------
Sisyph wrote:

Instead of using !if, can you override the relevant fields such as  Ins64 and Src0Mod in VOP_MOVRELD?

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


More information about the llvm-commits mailing list