summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2017-02-08 23:23:39 +0000
committerTim Northover <tnorthover@apple.com>2017-02-08 23:23:39 +0000
commite0418418116ec089d11091bff0820694c20a7954 (patch)
treed04649e45b1bcb0e015eaaf2188dc958045780c3 /llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
parentb38b4e2464c9c88b332ca11914be73c50736ee86 (diff)
downloadbcm5719-llvm-e0418418116ec089d11091bff0820694c20a7954.tar.gz
bcm5719-llvm-e0418418116ec089d11091bff0820694c20a7954.zip
GlobalISel: legalize G_FPOW to a libcall on AArch64.
There's no instruction to implement it. llvm-svn: 294531
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp b/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
index 32f9c5f80d0..c978be9ab10 100644
--- a/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
@@ -78,8 +78,10 @@ AArch64LegalizerInfo::AArch64LegalizerInfo() {
for (auto Ty : {s32, s64})
setAction({BinOp, Ty}, Legal);
- setAction({G_FREM, s32}, Libcall);
- setAction({G_FREM, s64}, Libcall);
+ for (unsigned BinOp : {G_FREM, G_FPOW}) {
+ setAction({BinOp, s32}, Libcall);
+ setAction({BinOp, s64}, Libcall);
+ }
// FIXME: what should we do about G_INSERTs with more than one source value?
// For now the default of not specifying means we'll fall back.
OpenPOWER on IntegriCloud