diff options
author | Tim Northover <tnorthover@apple.com> | 2014-04-22 10:10:09 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-04-22 10:10:09 +0000 |
commit | 74bd57b16bb55275965e6cc75f8ad1b882938c7d (patch) | |
tree | 867bbf48dae9b498f1f727e028776000798072cb /lib | |
parent | 07dcdc7c9057e11c7e1d61ac4eca1b2720f18f6a (diff) | |
download | llvm-74bd57b16bb55275965e6cc75f8ad1b882938c7d.tar.gz llvm-74bd57b16bb55275965e6cc75f8ad1b882938c7d.tar.bz2 llvm-74bd57b16bb55275965e6cc75f8ad1b882938c7d.tar.xz |
ARM: disable emission of __XYZvfp in soft-float environment.
The point of these calls is to allow Thumb-1 code to make use of the VFP unit
to perform its operations. This is not desirable with -msoft-float, since most
of the reasons you'd want that apply equally to the runtime library.
rdar://problem/13766161
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 2a68a671fb..0a64d991c0 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -172,7 +172,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM) if (Subtarget->isTargetMachO()) { // Uses VFP for Thumb libfuncs if available. if (Subtarget->isThumb() && Subtarget->hasVFP2() && - Subtarget->hasARMOps()) { + Subtarget->hasARMOps() && !TM.Options.UseSoftFloat) { // Single-precision floating-point arithmetic. setLibcallName(RTLIB::ADD_F32, "__addsf3vfp"); setLibcallName(RTLIB::SUB_F32, "__subsf3vfp"); |