[llvm] r214176 - ARM: add __aeabi_d2h for truncation on AEABI systems
Tim Northover
tnorthover at apple.com
Tue Jul 29 02:56:45 PDT 2014
Author: tnorthover
Date: Tue Jul 29 04:56:45 2014
New Revision: 214176
URL: http://llvm.org/viewvc/llvm-project?rev=214176&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
llvm/trunk/test/CodeGen/ARM/fp16.ll
Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=214176&r1=214175&r2=214176&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Tue Jul 29 04:56:45 2014
@@ -312,6 +312,7 @@ ARMTargetLowering::ARMTargetLowering(Tar
// 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.
Modified: llvm/trunk/test/CodeGen/ARM/fp16.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/fp16.ll?rev=214176&r1=214175&r2=214176&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/fp16.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/fp16.ll Tue Jul 29 04:56:45 2014
@@ -73,7 +73,7 @@ define arm_aapcs_vfpcc i16 @test_to_fp16
; CHECK-ARMV8: vcvtb.f16.f64 [[TMP:s[0-9]+]], d0
; CHECK-ARMV8: vmov r0, [[TMP]]
-; CHECK-SOFTFLOAT: bl __truncdfhf2
+; CHECK-SOFTFLOAT: bl __aeabi_d2h
ret i16 %val
}
More information about the llvm-commits
mailing list