summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2019-01-28 21:27:23 +0000
committerJessica Paquette <jpaquette@apple.com>2019-01-28 21:27:23 +0000
commit2d73ecd0a34ad06e748a7be89e50795dd20deada (patch)
tree9cf3f9d05ff050d6f4fe13e4a5c294d3eca548a1 /llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
parent38170e444fdb3ca4fc9aeb1d982de5e6a6d90cfb (diff)
downloadbcm5719-llvm-2d73ecd0a34ad06e748a7be89e50795dd20deada.tar.gz
bcm5719-llvm-2d73ecd0a34ad06e748a7be89e50795dd20deada.zip
[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
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp2
1 files changed, 1 insertions, 1 deletions
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.
OpenPOWER on IntegriCloud