AMDGPU/GlobalISel: Fix selection of scalar f64 G_FABS
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 7 Apr 2020 15:33:26 +0000 (11:33 -0400)
committerMatt Arsenault <arsenm2@gmail.com>
Wed, 15 Apr 2020 02:05:22 +0000 (22:05 -0400)
commitcc149172dab22e404e74b3dba9abee1e9416af8e
treea7388e4e78125b8462ed67e89b9a23b13f959b13
parentcb5dc3765bddc4e6bcd92e588c33cfa8424eb437
AMDGPU/GlobalISel: Fix selection of scalar f64 G_FABS

This wasn't covered by existing tablegen patterns, but also suffers
the same issues as G_FNEG. Workaround them by manually selecting, like
G_FNEG.
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
llvm/lib/Target/AMDGPU/SIInstructions.td
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-fabs.mir