From 2d73ecd0a34ad06e748a7be89e50795dd20deada Mon Sep 17 00:00:00 2001 From: Jessica Paquette Date: Mon, 28 Jan 2019 21:27:23 +0000 Subject: [GlobalISel][AArch64] Add legalization for G_FLOG This adds support for legalizing G_FLOG into a RTLib call. It adds a legalizer test, and updates the existing floating point tests. https://reviews.llvm.org/D57347 llvm-svn: 352429 --- llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp') diff --git a/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp b/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp index e2c6fca903c..8496c92f339 100644 --- a/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp +++ b/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp @@ -143,7 +143,7 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST) { [=](const LegalityQuery &Query) { return std::make_pair(0, s32); }) .legalFor({s16, s32, s64, v2s32, v4s32, v2s64, v2s16, v4s16, v8s16}); - getActionDefinitionsBuilder({G_FCOS, G_FSIN, G_FLOG10}) + getActionDefinitionsBuilder({G_FCOS, G_FSIN, G_FLOG10, G_FLOG}) // We need a call for these, so we always need to scalarize. .scalarize(0) // Regardless of FP16 support, widen 16-bit elements to 32-bits. -- cgit v1.2.3