[PATCH] D108259: [AArch64][GlobalISel] Legalize scalar G_FMINNUM + G_FMAXNUM

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 17 17:33:57 PDT 2021


paquette created this revision.
paquette added reviewers: aemerson, jroelofs.
Herald added subscribers: hiraditya, kristof.beyls, rovka.
paquette requested review of this revision.
Herald added a project: LLVM.

For subtargets with full FP16, this is legal for s16, s32, and s64. Without full FP16, it's legal for s32 and s64.

For s128, this is a libcall.

We also support some vector types, but for now, let's just support scalars.


https://reviews.llvm.org/D108259

Files:
  llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-fmaxnum.mir
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-fminnum.mir
  llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108259.367072.patch
Type: text/x-patch
Size: 10847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210818/a7e68179/attachment.bin>


More information about the llvm-commits mailing list