summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2019-05-26 11:13:00 +0000
committerDavid Green <david.green@arm.com>2019-05-26 11:13:00 +0000
commit21542cd6f4c62004dfa24b56766d9cd135eb98cd (patch)
treec8285f73db3242655afd69be1453095841287934 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parentc9f4b7d201cce6343939f741ffdb5f622b6768b0 (diff)
downloadbcm5719-llvm-21542cd6f4c62004dfa24b56766d9cd135eb98cd.tar.gz
bcm5719-llvm-21542cd6f4c62004dfa24b56766d9cd135eb98cd.zip
[ARM] Select a number of fp16 rounding functions
This add patterns for fp16 round and ceil etc. Same as the float and double patterns. Differential Revision: https://reviews.llvm.org/D62326 llvm-svn: 361718
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 24e67010908..677e4d5b2e8 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -1156,6 +1156,8 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM,
setOperationAction(ISD::FLOG, MVT::f16, Promote);
setOperationAction(ISD::FLOG10, MVT::f16, Promote);
setOperationAction(ISD::FLOG2, MVT::f16, Promote);
+
+ setOperationAction(ISD::FROUND, MVT::f16, Legal);
}
if (Subtarget->hasNEON()) {
OpenPOWER on IntegriCloud