summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/vfp-libcalls.ll
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-04-22 10:10:09 +0000
committerTim Northover <tnorthover@apple.com>2014-04-22 10:10:09 +0000
commit978d25f39171235f286129ada5b054ada2e4f392 (patch)
tree80ef3b0b357f24cc8eeb62671a4e97a2c50ee133 /llvm/test/CodeGen/ARM/vfp-libcalls.ll
parentc636d152849c068d393061c9ff9679054e33d673 (diff)
downloadbcm5719-llvm-978d25f39171235f286129ada5b054ada2e4f392.tar.gz
bcm5719-llvm-978d25f39171235f286129ada5b054ada2e4f392.zip
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 llvm-svn: 206874
Diffstat (limited to 'llvm/test/CodeGen/ARM/vfp-libcalls.ll')
-rw-r--r--llvm/test/CodeGen/ARM/vfp-libcalls.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/vfp-libcalls.ll b/llvm/test/CodeGen/ARM/vfp-libcalls.ll
new file mode 100644
index 00000000000..9d4e194e90e
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/vfp-libcalls.ll
@@ -0,0 +1,11 @@
+; RUN: llc -mtriple=armv6-apple-ios -mcpu=arm1136jf-s -o - %s | FileCheck %s --check-prefix=CHECK-HARD
+; RUN: llc -mtriple=thumbv6-apple-ios -mcpu=arm1136jf-s -o - %s | FileCheck %s --check-prefix=CHECK-SOFTISH
+; RUN: llc -mtriple=armv7s-apple-ios -soft-float -mcpu=arm1136jf-s -o - %s | FileCheck %s --check-prefix=CHECK-SOFT
+
+define float @test_call(float %a, float %b) {
+; CHECK-HARD: vadd.f32 {{s[0-9]+}}, {{s[0-9]+}}, {{s[0-9]+}}
+; CHECK-SOFTISH: blx ___addsf3vfp
+; CHECK-SOFT: bl ___addsf3{{$}}
+ %sum = fadd float %a, %b
+ ret float %sum
+} \ No newline at end of file
OpenPOWER on IntegriCloud