summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-07-29 09:56:45 +0000
committerTim Northover <tnorthover@apple.com>2014-07-29 09:56:45 +0000
commit4e13a61413e83dafc5c4c3675c9f2bbdade1dcb7 (patch)
tree2acc817714568d12711165e082c95645ebf67865 /llvm/lib/Target/ARM
parentf67bb2079d8bc4e98c436cee5e4e55050e263c03 (diff)
downloadbcm5719-llvm-4e13a61413e83dafc5c4c3675c9f2bbdade1dcb7.tar.gz
bcm5719-llvm-4e13a61413e83dafc5c4c3675c9f2bbdade1dcb7.zip
ARM: add __aeabi_d2h for truncation on AEABI systems
ARM does actually define the name for this conversion, so we should use it on "-eabi" platforms. llvm-svn: 214176
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 49ed02277e2..f10394a66d8 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -312,6 +312,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
// Conversions between floating types.
// RTABI chapter 4.1.2, Table 7
{ RTLIB::FPROUND_F64_F32, "__aeabi_d2f", CallingConv::ARM_AAPCS, ISD::SETCC_INVALID },
+ { RTLIB::FPROUND_F64_F16, "__aeabi_d2h", CallingConv::ARM_AAPCS, ISD::SETCC_INVALID },
{ RTLIB::FPEXT_F32_F64, "__aeabi_f2d", CallingConv::ARM_AAPCS, ISD::SETCC_INVALID },
// Integer to floating-point conversions.
OpenPOWER on IntegriCloud