summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2014-07-11 13:33:46 +0000
committerOliver Stannard <oliver.stannard@arm.com>2014-07-11 13:33:46 +0000
commit6eda6ffc0c32f98a2c78a34ca613b519ed5c14c3 (patch)
tree09f665529fc08b2ee8b75c73da1af26eac367048 /llvm/lib/CodeGen
parentb666eee1c8df5c431d8340830205744eb80a696d (diff)
downloadbcm5719-llvm-6eda6ffc0c32f98a2c78a34ca613b519ed5c14c3.tar.gz
bcm5719-llvm-6eda6ffc0c32f98a2c78a34ca613b519ed5c14c3.zip
ARM: Allow __fp16 as a function arg or return type for AArch64
ACLE 2.0 allows __fp16 to be used as a function argument or return type. This enables this for AArch64. llvm-svn: 212812
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 0d6a06605ed..bff540ad174 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -270,7 +270,7 @@ SelectionDAGLegalize::ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP) {
EVT OrigVT = VT;
EVT SVT = VT;
- while (SVT != MVT::f32) {
+ while (SVT != MVT::f32 && SVT != MVT::f16) {
SVT = (MVT::SimpleValueType)(SVT.getSimpleVT().SimpleTy - 1);
if (ConstantFPSDNode::isValueValidForType(SVT, CFP->getValueAPF()) &&
// Only do this if the target has a native EXTLOAD instruction from
OpenPOWER on IntegriCloud