summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>2019-06-06 09:02:24 +0000
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>2019-06-06 09:02:24 +0000
commitfaaa2b5d2156271d19603ebedfa80f10c3703d7f (patch)
treeb93b77734a0eb3ca73b9450573c2dee3d7b2ce06 /llvm/lib/Target
parent7cc580f5e95e7e5dd84db2c276f58709258cd120 (diff)
downloadbcm5719-llvm-faaa2b5d2156271d19603ebedfa80f10c3703d7f.tar.gz
bcm5719-llvm-faaa2b5d2156271d19603ebedfa80f10c3703d7f.zip
[MIPS GlobalISel] Select floor and ceil
Select G_FFLOOR and G_FCEIL for MIPS32. Differential Revision: https://reviews.llvm.org/D62901 llvm-svn: 362688
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/Mips/MipsLegalizerInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsLegalizerInfo.cpp b/llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
index cabaed8e303..4fb61ce457d 100644
--- a/llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
+++ b/llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
@@ -101,6 +101,9 @@ MipsLegalizerInfo::MipsLegalizerInfo(const MipsSubtarget &ST) {
.legalFor({{s32, s32}, {s32, s64}})
.minScalar(0, s32);
+ getActionDefinitionsBuilder({G_FCEIL, G_FFLOOR})
+ .libcallFor({s32, s64});
+
computeTables();
verify(*ST.getInstrInfo());
}
OpenPOWER on IntegriCloud