summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2016-06-24 00:08:01 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2016-06-24 00:08:01 +0000
commitf0b46ee0aae159c9a9e5c8b126f65fc501467686 (patch)
treea1243e73cab67544cf049fdbfe46c94c0cc263e7 /llvm/test
parent62c70101c3400dec8d2cd82ea0bfdff90215bce9 (diff)
downloadbcm5719-llvm-f0b46ee0aae159c9a9e5c8b126f65fc501467686.tar.gz
bcm5719-llvm-f0b46ee0aae159c9a9e5c8b126f65fc501467686.zip
[ARM] Use aapcs_vfp for ___truncdfhf2 on v7k.
r215348 overrode the f16 libcalls to be soft-float, but v7k uses the default (hard-float) calling convention. llvm-svn: 273631
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/ARM/v7k-libcalls.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/v7k-libcalls.ll b/llvm/test/CodeGen/ARM/v7k-libcalls.ll
index a1dfb07ca61..8ca31ef4e65 100644
--- a/llvm/test/CodeGen/ARM/v7k-libcalls.ll
+++ b/llvm/test/CodeGen/ARM/v7k-libcalls.ll
@@ -145,6 +145,15 @@ define arm_aapcs_vfpcc double @t14(double %x) {
ret double %__exp10
}
+define i16 @t15(double %x) {
+; CHECK-LABEL: t15:
+; CHECK-NOT: vmov
+; CHECK: bl ___truncdfhf2
+ %tmp0 = fptrunc double %x to half
+ %tmp1 = bitcast half %tmp0 to i16
+ ret i16 %tmp1
+}
+
declare arm_aapcs_vfpcc double @x(double, double, double, double, double, double, double, float, double)
declare arm_aapcs_vfpcc double @cos(double) #0
declare arm_aapcs_vfpcc double @sin(double) #0
OpenPOWER on IntegriCloud