1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
| ; RUN: llvm-dis < %s.bc| FileCheck %s
; RUN: verify-uselistorder < %s.bc
; calling-conventions.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not silently misread calling conventions of
; older bitcode files.
declare ccc void @ccc()
; CHECK: declare void @ccc
declare fastcc void @fastcc()
; CHECK: declare fastcc void @fastcc
declare coldcc void @coldcc()
; CHECK: declare coldcc void @coldcc
declare cc10 void @cc10()
; CHECK: declare ghccc void @cc10
declare spir_kernel void @spir_kernel()
; CHECK: declare spir_kernel void @spir_kernel
declare spir_func void @spir_func()
; CHECK: declare spir_func void @spir_func
declare intel_ocl_bicc void @intel_ocl_bicc()
; CHECK: declare intel_ocl_bicc void @intel_ocl_bicc
declare cfguard_checkcc void @cfguard_checkcc()
; CHECK: declare cfguard_checkcc void @cfguard_checkcc
declare x86_stdcallcc void @x86_stdcallcc()
; CHECK: declare x86_stdcallcc void @x86_stdcallcc
declare x86_fastcallcc void @x86_fastcallcc()
; CHECK: declare x86_fastcallcc void @x86_fastcallcc
declare x86_thiscallcc void @x86_thiscallcc()
; CHECK: declare x86_thiscallcc void @x86_thiscallcc
declare arm_apcscc void @arm_apcscc()
; CHECK: declare arm_apcscc void @arm_apcscc
declare arm_aapcscc void @arm_aapcscc()
; CHECK: declare arm_aapcscc void @arm_aapcscc
declare arm_aapcs_vfpcc void @arm_aapcs_vfpcc()
; CHECK: declare arm_aapcs_vfpcc void @arm_aapcs_vfpcc
declare msp430_intrcc void @msp430_intrcc()
; CHECK: declare msp430_intrcc void @msp430_intrcc
declare ptx_kernel void @ptx_kernel()
; CHECK: declare ptx_kernel void @ptx_kernel
declare ptx_device void @ptx_device()
; CHECK: declare ptx_device void @ptx_device
define void @call_ccc() {
; CHECK: call void @ccc
call ccc void @ccc()
ret void
}
define void @call_fastcc() {
; CHECK: call fastcc void @fastcc
call fastcc void @fastcc()
ret void
}
define void @call_coldcc() {
; CHECK: call coldcc void @coldcc
call coldcc void @coldcc()
ret void
}
define void @call_cc10 () {
; CHECK: call ghccc void @cc10
call cc10 void @cc10 ()
ret void
}
define void @call_spir_kernel() {
; CHECK: call spir_kernel void @spir_kernel
call spir_kernel void @spir_kernel()
ret void
}
define void @call_spir_func() {
; CHECK: call spir_func void @spir_func
call spir_func void @spir_func()
ret void
}
define void @call_intel_ocl_bicc() {
; CHECK: call intel_ocl_bicc void @intel_ocl_bicc
call intel_ocl_bicc void @intel_ocl_bicc()
ret void
}
define void @call_cfguard_checkcc() {
; CHECK: call cfguard_checkcc void @cfguard_checkcc
call cfguard_checkcc void @cfguard_checkcc()
ret void
}
define void @call_x86_stdcallcc() {
; CHECK: call x86_stdcallcc void @x86_stdcallcc
call x86_stdcallcc void @x86_stdcallcc()
ret void
}
define void @call_x86_fastcallcc() {
; CHECK: call x86_fastcallcc void @x86_fastcallcc
call x86_fastcallcc void @x86_fastcallcc()
ret void
}
define void @call_x86_thiscallcc() {
; CHECK: call x86_thiscallcc void @x86_thiscallcc
call x86_thiscallcc void @x86_thiscallcc()
ret void
}
define void @call_arm_apcscc() {
; CHECK: call arm_apcscc void @arm_apcscc
call arm_apcscc void @arm_apcscc()
ret void
}
define void @call_arm_aapcscc() {
; CHECK: call arm_aapcscc void @arm_aapcscc
call arm_aapcscc void @arm_aapcscc()
ret void
}
define void @call_arm_aapcs_vfpcc() {
; CHECK: call arm_aapcs_vfpcc void @arm_aapcs_vfpcc
call arm_aapcs_vfpcc void @arm_aapcs_vfpcc()
ret void
}
define void @call_msp430_intrcc() {
; CHECK: call msp430_intrcc void @msp430_intrcc
call msp430_intrcc void @msp430_intrcc()
ret void
}
define void @call_ptx_kernel() {
; CHECK: call ptx_kernel void @ptx_kernel
call ptx_kernel void @ptx_kernel()
ret void
}
define void @call_ptx_device() {
; CHECK: call ptx_device void @ptx_device
call ptx_device void @ptx_device()
ret void
}
|