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 x86_stdcallcc void @x86_stdcallcc()
30 ; CHECK: declare x86_stdcallcc void @x86_stdcallcc
32 declare x86_fastcallcc void @x86_fastcallcc()
33 ; CHECK: declare x86_fastcallcc void @x86_fastcallcc
35 declare x86_thiscallcc void @x86_thiscallcc()
36 ; CHECK: declare x86_thiscallcc void @x86_thiscallcc
38 declare arm_apcscc void @arm_apcscc()
39 ; CHECK: declare arm_apcscc void @arm_apcscc
41 declare arm_aapcscc void @arm_aapcscc()
42 ; CHECK: declare arm_aapcscc void @arm_aapcscc
44 declare arm_aapcs_vfpcc void @arm_aapcs_vfpcc()
45 ; CHECK: declare arm_aapcs_vfpcc void @arm_aapcs_vfpcc
47 declare msp430_intrcc void @msp430_intrcc()
48 ; CHECK: declare msp430_intrcc void @msp430_intrcc
50 declare ptx_kernel void @ptx_kernel()
51 ; CHECK: declare ptx_kernel void @ptx_kernel
53 declare ptx_device void @ptx_device()
54 ; CHECK: declare ptx_device void @ptx_device
56 define void @call_ccc() {
57 ; CHECK: call void @ccc
62 define void @call_fastcc() {
63 ; CHECK: call fastcc void @fastcc
64 call fastcc void @fastcc()
68 define void @call_coldcc() {
69 ; CHECK: call coldcc void @coldcc
70 call coldcc void @coldcc()
74 define void @call_cc10 () {
75 ; CHECK: call ghccc void @cc10
76 call cc10 void @cc10 ()
80 define void @call_spir_kernel() {
81 ; CHECK: call spir_kernel void @spir_kernel
82 call spir_kernel void @spir_kernel()
86 define void @call_spir_func() {
87 ; CHECK: call spir_func void @spir_func
88 call spir_func void @spir_func()
92 define void @call_intel_ocl_bicc() {
93 ; CHECK: call intel_ocl_bicc void @intel_ocl_bicc
94 call intel_ocl_bicc void @intel_ocl_bicc()
98 define void @call_x86_stdcallcc() {
99 ; CHECK: call x86_stdcallcc void @x86_stdcallcc
100 call x86_stdcallcc void @x86_stdcallcc()
104 define void @call_x86_fastcallcc() {
105 ; CHECK: call x86_fastcallcc void @x86_fastcallcc
106 call x86_fastcallcc void @x86_fastcallcc()
110 define void @call_x86_thiscallcc() {
111 ; CHECK: call x86_thiscallcc void @x86_thiscallcc
112 call x86_thiscallcc void @x86_thiscallcc()
116 define void @call_arm_apcscc() {
117 ; CHECK: call arm_apcscc void @arm_apcscc
118 call arm_apcscc void @arm_apcscc()
122 define void @call_arm_aapcscc() {
123 ; CHECK: call arm_aapcscc void @arm_aapcscc
124 call arm_aapcscc void @arm_aapcscc()
128 define void @call_arm_aapcs_vfpcc() {
129 ; CHECK: call arm_aapcs_vfpcc void @arm_aapcs_vfpcc
130 call arm_aapcs_vfpcc void @arm_aapcs_vfpcc()
134 define void @call_msp430_intrcc() {
135 ; CHECK: call msp430_intrcc void @msp430_intrcc
136 call msp430_intrcc void @msp430_intrcc()
140 define void @call_ptx_kernel() {
141 ; CHECK: call ptx_kernel void @ptx_kernel
142 call ptx_kernel void @ptx_kernel()
146 define void @call_ptx_device() {
147 ; CHECK: call ptx_device void @ptx_device
148 call ptx_device void @ptx_device()