summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2013-10-24 23:07:11 +0000
committerJim Grosbach <grosbach@apple.com>2013-10-24 23:07:11 +0000
commit1d1d6d4675ae21ce8123b0b932cc6eb5673166e0 (patch)
tree7dd5653af44b317274e927d5551312bb0182df49 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parent9b2349888fed43c91d266ef173b8e71e000d4c8b (diff)
downloadbcm5719-llvm-1d1d6d4675ae21ce8123b0b932cc6eb5673166e0.tar.gz
bcm5719-llvm-1d1d6d4675ae21ce8123b0b932cc6eb5673166e0.zip
ARM: Tweak usage of '*vfp' compiler_rt functions.
Only use them if the subtarget has ARM mode, as these routines are implemented as ARM code. rdar://15302004 llvm-svn: 193381
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 3deed78f33f..10f26040e05 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -177,7 +177,8 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
if (Subtarget->isTargetIOS()) {
// Uses VFP for Thumb libfuncs if available.
- if (Subtarget->isThumb() && Subtarget->hasVFP2()) {
+ if (Subtarget->isThumb() && Subtarget->hasVFP2() &&
+ Subtarget->hasARMOps()) {
// Single-precision floating-point arithmetic.
setLibcallName(RTLIB::ADD_F32, "__addsf3vfp");
setLibcallName(RTLIB::SUB_F32, "__subsf3vfp");
OpenPOWER on IntegriCloud