AMDGPU: Restore atomic fp feature on FP atomic instruction definitions
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 9 Apr 2021 22:40:59 +0000 (18:40 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 23 Apr 2021 01:32:01 +0000 (21:32 -0400)
commited633a1daad97044063934cf28985491fbed7b4c
tree08b5c8c8ec5fedae475af9abf6639622347c5a0b
parent2786e673c7d67ffca531ef38d679620ee3048a1e
AMDGPU: Restore atomic fp feature on FP atomic instruction definitions

9931b1f7a4785b6a17fb87b81a3546d61d0cbca1 switched this to checking for
the two specific subtargets, instead of the dedicated feature. This
broke supporting functions which force added the feature when emitting
targets that do not actually support them. This stil does not work for
the targets that use the gfx6/7 or gfx10 encodings.
llvm/lib/Target/AMDGPU/FLATInstructions.td
llvm/test/CodeGen/AMDGPU/global-atomics-fp-wrong-subtarget.ll [new file with mode: 0644]