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