1 ; RUN: llvm-dis < %s.bc| FileCheck %s
2 ; RUN: verify-uselistorder < %s.bc
4 ; calling-conventions.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
5 ; The test checks that LLVM does not silently misread calling conventions of
8 declare ccc void @ccc()
9 ; CHECK: declare void @ccc
11 declare fastcc void @fastcc()
12 ; CHECK: declare fastcc void @fastcc
14 declare coldcc void @coldcc()
15 ; CHECK: declare coldcc void @coldcc
17 declare cc10 void @cc10()
18 ; CHECK: declare ghccc void @cc10
20 declare spir_kernel void @spir_kernel()
21 ; CHECK: declare spir_kernel void @spir_kernel
23 declare spir_func void @spir_func()
24 ; CHECK: declare spir_func void @spir_func
26 declare intel_ocl_bicc void @intel_ocl_bicc()
27 ; CHECK: declare intel_ocl_bicc void @intel_ocl_bicc
29 declare cfguard_checkcc void @cfguard_checkcc()
30 ; CHECK: declare cfguard_checkcc void @cfguard_checkcc
32 declare x86_stdcallcc void @x86_stdcallcc()
33 ; CHECK: declare x86_stdcallcc void @x86_stdcallcc
35 declare x86_fastcallcc void @x86_fastcallcc()
36 ; CHECK: declare x86_fastcallcc void @x86_fastcallcc
38 declare x86_thiscallcc void @x86_thiscallcc()
39 ; CHECK: declare x86_thiscallcc void @x86_thiscallcc
41 declare arm_apcscc void @arm_apcscc()
42 ; CHECK: declare arm_apcscc void @arm_apcscc
44 declare arm_aapcscc void @arm_aapcscc()
45 ; CHECK: declare arm_aapcscc void @arm_aapcscc
47 declare arm_aapcs_vfpcc void @arm_aapcs_vfpcc()
48 ; CHECK: declare arm_aapcs_vfpcc void @arm_aapcs_vfpcc
50 declare msp430_intrcc void @msp430_intrcc()
51 ; CHECK: declare msp430_intrcc void @msp430_intrcc
53 declare ptx_kernel void @ptx_kernel()
54 ; CHECK: declare ptx_kernel void @ptx_kernel
56 declare ptx_device void @ptx_device()
57 ; CHECK: declare ptx_device void @ptx_device
59 define void @call_ccc() {
60 ; CHECK: call void @ccc
65 define void @call_fastcc() {
66 ; CHECK: call fastcc void @fastcc
67 call fastcc void @fastcc()
71 define void @call_coldcc() {
72 ; CHECK: call coldcc void @coldcc
73 call coldcc void @coldcc()
77 define void @call_cc10 () {
78 ; CHECK: call ghccc void @cc10
79 call cc10 void @cc10 ()
83 define void @call_spir_kernel() {
84 ; CHECK: call spir_kernel void @spir_kernel
85 call spir_kernel void @spir_kernel()
89 define void @call_spir_func() {
90 ; CHECK: call spir_func void @spir_func
91 call spir_func void @spir_func()
95 define void @call_intel_ocl_bicc() {
96 ; CHECK: call intel_ocl_bicc void @intel_ocl_bicc
97 call intel_ocl_bicc void @intel_ocl_bicc()
101 define void @call_cfguard_checkcc() {
102 ; CHECK: call cfguard_checkcc void @cfguard_checkcc
103 call cfguard_checkcc void @cfguard_checkcc()
107 define void @call_x86_stdcallcc() {
108 ; CHECK: call x86_stdcallcc void @x86_stdcallcc
109 call x86_stdcallcc void @x86_stdcallcc()
113 define void @call_x86_fastcallcc() {
114 ; CHECK: call x86_fastcallcc void @x86_fastcallcc
115 call x86_fastcallcc void @x86_fastcallcc()
119 define void @call_x86_thiscallcc() {
120 ; CHECK: call x86_thiscallcc void @x86_thiscallcc
121 call x86_thiscallcc void @x86_thiscallcc()
125 define void @call_arm_apcscc() {
126 ; CHECK: call arm_apcscc void @arm_apcscc
127 call arm_apcscc void @arm_apcscc()
131 define void @call_arm_aapcscc() {
132 ; CHECK: call arm_aapcscc void @arm_aapcscc
133 call arm_aapcscc void @arm_aapcscc()
137 define void @call_arm_aapcs_vfpcc() {
138 ; CHECK: call arm_aapcs_vfpcc void @arm_aapcs_vfpcc
139 call arm_aapcs_vfpcc void @arm_aapcs_vfpcc()
143 define void @call_msp430_intrcc() {
144 ; CHECK: call msp430_intrcc void @msp430_intrcc
145 call msp430_intrcc void @msp430_intrcc()
149 define void @call_ptx_kernel() {
150 ; CHECK: call ptx_kernel void @ptx_kernel
151 call ptx_kernel void @ptx_kernel()
155 define void @call_ptx_device() {
156 ; CHECK: call ptx_device void @ptx_device
157 call ptx_device void @ptx_device()