]> granicus.if.org Git - llvm/commit
GlobalISel: Implement lower for G_FCOPYSIGN
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 9 Jul 2019 23:34:29 +0000 (23:34 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 9 Jul 2019 23:34:29 +0000 (23:34 +0000)
commit13b473d24877312caff6f80f79e44b3eaca4f3dc
treeeeb160ff54be81084a1703c79e2236b84cdd95f2
parent4f80e373f5680da00ac0794f819b966ae2d74107
GlobalISel: Implement lower for G_FCOPYSIGN

In SelectionDAG AMDGPU treated these as legal, but this was mostly
because the bitcasts required for FP types were painful. Theoretically
the bitpattern should eventually match to bfi, so don't bother trying
to get the patterns to import.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365583 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/legalize-fcopysign.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-frint.mir