[llvm] e09fe9b - AMDGPU: Fix adding m0 uses to gfx12 ds atomics (#156399)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Sep  2 01:16:54 PDT 2025
    
    
  
Author: Matt Arsenault
Date: 2025-09-02T17:16:51+09:00
New Revision: e09fe9b5aae753c34827c71eea04284c20ed38d3
URL: https://github.com/llvm/llvm-project/commit/e09fe9b5aae753c34827c71eea04284c20ed38d3
DIFF: https://github.com/llvm/llvm-project/commit/e09fe9b5aae753c34827c71eea04284c20ed38d3.diff
LOG: AMDGPU: Fix adding m0 uses to gfx12 ds atomics (#156399)
Added: 
    
Modified: 
    llvm/lib/Target/AMDGPU/DSInstructions.td
Removed: 
    
################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/DSInstructions.td b/llvm/lib/Target/AMDGPU/DSInstructions.td
index 3703133126b0f..611695bd26d3a 100644
--- a/llvm/lib/Target/AMDGPU/DSInstructions.td
+++ b/llvm/lib/Target/AMDGPU/DSInstructions.td
@@ -774,10 +774,10 @@ def DS_BVH_STACK_PUSH8_POP2_RTN_B64 : DS_BVH_STACK<
   "ds_bvh_stack_push8_pop2_rtn_b64", VReg_64, VReg_256>;
 } // End OtherPredicates = [HasImageInsts].
 
-defm DS_COND_SUB_U32      : DS_1A1D_NORET_mc<"ds_cond_sub_u32">;
-defm DS_COND_SUB_RTN_U32  : DS_1A1D_RET_mc<"ds_cond_sub_rtn_u32", VGPR_32>;
-defm DS_SUB_CLAMP_U32     : DS_1A1D_NORET_mc<"ds_sub_clamp_u32">;
-defm DS_SUB_CLAMP_RTN_U32 : DS_1A1D_RET_mc<"ds_sub_clamp_rtn_u32", VGPR_32>;
+defm DS_COND_SUB_U32      : DS_1A1D_NORET_mc_gfx9<"ds_cond_sub_u32">;
+defm DS_COND_SUB_RTN_U32  : DS_1A1D_RET_mc_gfx9<"ds_cond_sub_rtn_u32", VGPR_32>;
+defm DS_SUB_CLAMP_U32     : DS_1A1D_NORET_mc_gfx9<"ds_sub_clamp_u32">;
+defm DS_SUB_CLAMP_RTN_U32 : DS_1A1D_RET_mc_gfx9<"ds_sub_clamp_rtn_u32", VGPR_32>;
 def DS_BPERMUTE_FI_B32    : DS_1A1D_PERMUTE <"ds_bpermute_fi_b32",
                                              int_amdgcn_ds_bpermute_fi_b32>;
 
        
    
    
More information about the llvm-commits
mailing list