source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/Windows/libcalls.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 1.4 KB
Line 
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
4define arm_aapcs_vfpcc i64 @stoi64(float %f) {
5entry:
6  %conv = fptosi float %f to i64
7  ret i64 %conv
8}
9
10; CHECK-LABEL: stoi64
11; CHECK: bl __stoi64
12
13define arm_aapcs_vfpcc i64 @stou64(float %f) {
14entry:
15  %conv = fptoui float %f to i64
16  ret i64 %conv
17}
18
19; CHECK-LABEL: stou64
20; CHECK: bl __stou64
21
22define arm_aapcs_vfpcc float @i64tos(i64 %i64) {
23entry:
24  %conv = sitofp i64 %i64 to float
25  ret float %conv
26}
27
28; CHECK-LABEL: i64tos
29; CHECK: bl __i64tos
30
31define arm_aapcs_vfpcc float @u64tos(i64 %u64) {
32entry:
33  %conv = uitofp i64 %u64 to float
34  ret float %conv
35}
36
37; CHECK-LABEL: u64tos
38; CHECK: bl __u64tos
39
40define arm_aapcs_vfpcc i64 @dtoi64(double %d) {
41entry:
42  %conv = fptosi double %d to i64
43  ret i64 %conv
44}
45
46; CHECK-LABEL: dtoi64
47; CHECK: bl __dtoi64
48
49define arm_aapcs_vfpcc i64 @dtou64(double %d) {
50entry:
51  %conv = fptoui double %d to i64
52  ret i64 %conv
53}
54
55; CHECK-LABEL: dtou64
56; CHECK: bl __dtou64
57
58define arm_aapcs_vfpcc double @i64tod(i64 %i64) {
59entry:
60  %conv = sitofp i64 %i64 to double
61  ret double %conv
62}
63
64; CHECK-LABEL: i64tod
65; CHECK: bl __i64tod
66
67define arm_aapcs_vfpcc double @u64tod(i64 %i64) {
68entry:
69  %conv = uitofp i64 %i64 to double
70  ret double %conv
71}
72
73; CHECK-LABEL: u64tod
74; CHECK: bl __u64tod
75
Note: See TracBrowser for help on using the repository browser.