[AMDGPU] Fix atomic float max/min intrinsics
authorJoe Nash <Joseph.Nash@amd.com>
Thu, 12 Aug 2021 19:00:19 +0000 (15:00 -0400)
committerJoe Nash <Joseph.Nash@amd.com>
Wed, 18 Aug 2021 18:12:42 +0000 (14:12 -0400)
commit9dbc968ed9fa7b81ba6be27f7f26b79bc813a7bb
tree1ac33f6fdca15445ceb458e342d894c85b59d85f
parentfd51ab634143e0c1be49a62e16616ba5ab89273e
[AMDGPU] Fix atomic float max/min intrinsics

Hooked up raw.buffer.atomic.fmin/max.f64
This instruction should be available on GFX6, GFX7, and GFX10.
It was implemented for GFX90a with a different name.

Added intrinsic def for image_atomic_fmin/fmax; the instruction
defs were already there.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D108208

Change-Id: I473f98d28b2afbeeb2c27822d9686b5e86634e2f
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
llvm/lib/Target/AMDGPU/BUFInstructions.td
llvm/test/CodeGen/AMDGPU/fp-min-max-atomics.ll [new file with mode: 0644]