]> granicus.if.org Git - llvm/commit
[MIPS GlobalISel] Lower fptoui
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>
Fri, 30 Aug 2019 05:44:02 +0000 (05:44 +0000)
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>
Fri, 30 Aug 2019 05:44:02 +0000 (05:44 +0000)
commit549868db4039fc200bc5239a8b1eb1d222db7e3f
tree0a1959e83d97d98d6968b300b401a52a5e1681bb
parenta57252fd4522ec2e09feab7d909da8e45f8d049a
[MIPS GlobalISel] Lower fptoui

Add lower for G_FPTOUI. Algorithm is similar to the SDAG version
in TargetLowering::expandFP_TO_UINT.
Lower G_FPTOUI for MIPS32.

Differential Revision: https://reviews.llvm.org/D66929

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370431 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
lib/Target/Mips/MipsLegalizerInfo.cpp
test/CodeGen/Mips/GlobalISel/legalizer/fptosi_and_fptoui.mir
test/CodeGen/Mips/GlobalISel/llvm-ir/fptosi_and_fptoui.ll