[llvm] AMDGPU: Add codegen for atomicrmw operations usub_cond and usub_sat (PR #141068)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu May 22 09:01:17 PDT 2025
================
@@ -1744,6 +1744,12 @@ Value *SplitPtrStructs::handleMemoryInst(Instruction *I, Value *Arg, Value *Ptr,
case AtomicRMWInst::FMin:
IID = Intrinsic::amdgcn_raw_ptr_buffer_atomic_fmin;
break;
+ case AtomicRMWInst::USubCond:
+ IID = Intrinsic::amdgcn_raw_ptr_buffer_atomic_usub_cond;
+ break;
+ case AtomicRMWInst::USubSat:
+ IID = Intrinsic::amdgcn_raw_ptr_buffer_atomic_usub_sat;
+ break;
----------------
arsenm wrote:
These should be tested in one of the llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-* tests
https://github.com/llvm/llvm-project/pull/141068
More information about the llvm-commits
mailing list