[GlobalISel] Implement lowering for G_ISNAN + use it in AArch64
authorJessica Paquette <jpaquette@apple.com>
Tue, 17 Aug 2021 17:39:18 +0000 (10:39 -0700)
committerJessica Paquette <jpaquette@apple.com>
Wed, 18 Aug 2021 17:54:25 +0000 (10:54 -0700)
commit791006fb8c6fff4f33c33cb513a96b1d3f94c767
tree214d0643de3f355df6cf000f1b552bee72564e34
parent687f046c979a10bdd865b0bed0d9043f594658b8
[GlobalISel] Implement lowering for G_ISNAN + use it in AArch64

GlobalISel equivalent to `TargetLowering::expandISNAN`.

Use it in AArch64 and add a testcase.

Differential Revision: https://reviews.llvm.org/D108227
llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-isnan.mir [new file with mode: 0644]