[AMDGPU][GISel] Select llvm.amdgcn.fcmp intrinsics
authorPierre van Houtryve <pierre.vanhoutryve@amd.com>
Tue, 22 Nov 2022 08:35:02 +0000 (08:35 +0000)
committerPierre van Houtryve <pierre.vanhoutryve@amd.com>
Tue, 22 Nov 2022 14:18:58 +0000 (14:18 +0000)
commit9e7febb4f73c8584f622d4dad17be5417938eb10
treeb8f92e61c57d3d65af3474856de7ba2fd8eec5cb
parentdcefbce28109716803e8c83db1bd8d1bd0b6f369
[AMDGPU][GISel] Select llvm.amdgcn.fcmp intrinsics

Adds FP CCs opcodes/selection logic, including src mods selection

Depends on D136591, D136448
Resolves #58326 (https://github.com/llvm/llvm-project/issues/58326)

Reviewed By: arsenm, foad

Differential Revision: https://reviews.llvm.org/D136592
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-amdgcn.fcmp.constants.w32.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-amdgcn.fcmp.constants.w64.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fcmp.ll [deleted file]
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fcmp.w32.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fcmp.w64.ll [new file with mode: 0644]