d8b498a40d97c9d5d98976f415f5a4f942497d89
[oota-llvm.git] / test / CodeGen / ARM / Windows / libcalls.ll
1 ; RUN: llc -mtriple thumbv7-windows-itanium -filetype asm -o - %s | FileCheck %s
2 ; RUN: llc -mtriple thumbv7-windows-msvc -filetype asm -o - %s | FileCheck %s
3
4 define arm_aapcs_vfpcc i64 @stoi64(float %f) {
5 entry:
6   %conv = fptosi float %f to i64
7   ret i64 %conv
8 }
9
10 ; CHECK-LABEL: stoi64
11 ; CHECK: bl __stoi64
12
13 define arm_aapcs_vfpcc i64 @stou64(float %f) {
14 entry:
15   %conv = fptoui float %f to i64
16   ret i64 %conv
17 }
18
19 ; CHECK-LABEL: stou64
20 ; CHECK: bl __stou64
21
22 define arm_aapcs_vfpcc float @i64tos(i64 %i64) {
23 entry:
24   %conv = sitofp i64 %i64 to float
25   ret float %conv
26 }
27
28 ; CHECK-LABEL: i64tos
29 ; CHECK: bl __i64tos
30
31 define arm_aapcs_vfpcc float @u64tos(i64 %u64) {
32 entry:
33   %conv = uitofp i64 %u64 to float
34   ret float %conv
35 }
36
37 ; CHECK-LABEL: u64tos
38 ; CHECK: bl __u64tos
39
40 define arm_aapcs_vfpcc i64 @dtoi64(double %d) {
41 entry:
42   %conv = fptosi double %d to i64
43   ret i64 %conv
44 }
45
46 ; CHECK-LABEL: dtoi64
47 ; CHECK: bl __dtoi64
48
49 define arm_aapcs_vfpcc i64 @dtou64(double %d) {
50 entry:
51   %conv = fptoui double %d to i64
52   ret i64 %conv
53 }
54
55 ; CHECK-LABEL: dtou64
56 ; CHECK: bl __dtou64
57
58 define arm_aapcs_vfpcc double @i64tod(i64 %i64) {
59 entry:
60   %conv = sitofp i64 %i64 to double
61   ret double %conv
62 }
63
64 ; CHECK-LABEL: i64tod
65 ; CHECK: bl __i64tod
66
67 define arm_aapcs_vfpcc double @u64tod(i64 %i64) {
68 entry:
69   %conv = uitofp i64 %i64 to double
70   ret double %conv
71 }
72
73 ; CHECK-LABEL: u64tod
74 ; CHECK: bl __u64tod
75