2014-01-15 03:35:09 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 | FileCheck %s
|
2013-10-16 09:40:34 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-mingw32 | FileCheck %s
|
2014-11-01 06:00:51 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-pc-win32 | FileCheck %s --check-prefix=X64
|
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-mingw32 | FileCheck %s --check-prefix=X64
|
2013-10-16 09:40:34 +08:00
|
|
|
|
|
|
|
void __stdcall f1(void) {}
|
|
|
|
// CHECK: define x86_stdcallcc void @"\01_f1@0"
|
2014-11-01 06:00:51 +08:00
|
|
|
// X64: define void @f1(
|
2013-10-16 09:40:34 +08:00
|
|
|
|
|
|
|
void __fastcall f2(void) {}
|
|
|
|
// CHECK: define x86_fastcallcc void @"\01@f2@0"
|
2014-11-01 06:00:51 +08:00
|
|
|
// X64: define void @f2(
|
2013-10-16 09:40:34 +08:00
|
|
|
|
|
|
|
void __stdcall f3() {}
|
|
|
|
// CHECK: define x86_stdcallcc void @"\01_f3@0"
|
2014-11-01 06:00:51 +08:00
|
|
|
// X64: define void @f3(
|
2013-10-16 09:40:34 +08:00
|
|
|
|
|
|
|
void __fastcall f4(char a) {}
|
|
|
|
// CHECK: define x86_fastcallcc void @"\01@f4@4"
|
2014-11-01 06:00:51 +08:00
|
|
|
// X64: define void @f4(
|
2013-10-16 09:40:34 +08:00
|
|
|
|
|
|
|
void __fastcall f5(short a) {}
|
|
|
|
// CHECK: define x86_fastcallcc void @"\01@f5@4"
|
2014-11-01 06:00:51 +08:00
|
|
|
// X64: define void @f5(
|
2013-10-16 09:40:34 +08:00
|
|
|
|
|
|
|
void __fastcall f6(int a) {}
|
|
|
|
// CHECK: define x86_fastcallcc void @"\01@f6@4"
|
2014-11-01 06:00:51 +08:00
|
|
|
// X64: define void @f6(
|
2013-10-16 09:40:34 +08:00
|
|
|
|
|
|
|
void __fastcall f7(long a) {}
|
|
|
|
// CHECK: define x86_fastcallcc void @"\01@f7@4"
|
2014-11-01 06:00:51 +08:00
|
|
|
// X64: define void @f7(
|
2013-10-16 09:40:34 +08:00
|
|
|
|
|
|
|
void __fastcall f8(long long a) {}
|
|
|
|
// CHECK: define x86_fastcallcc void @"\01@f8@8"
|
2014-11-01 06:00:51 +08:00
|
|
|
// X64: define void @f8(
|
2013-10-16 09:40:34 +08:00
|
|
|
|
|
|
|
void __fastcall f9(long long a, char b, char c, short d) {}
|
2014-11-01 06:00:51 +08:00
|
|
|
// CHECK: define x86_fastcallcc void @"\01@f9@20"(i64 %a, i8 signext %b, i8 signext %c, i16 signext %d)
|
|
|
|
// X64: define void @f9(
|
2013-10-16 09:40:34 +08:00
|
|
|
|
|
|
|
void f12(void) {}
|
|
|
|
// CHECK: define void @f12(
|
2014-11-01 06:00:51 +08:00
|
|
|
// X64: define void @f12(
|
|
|
|
|
|
|
|
void __vectorcall v1(void) {}
|
|
|
|
// CHECK: define x86_vectorcallcc void @"\01v1@@0"(
|
|
|
|
// X64: define x86_vectorcallcc void @"\01v1@@0"(
|
|
|
|
|
|
|
|
void __vectorcall v2(char a) {}
|
|
|
|
// CHECK: define x86_vectorcallcc void @"\01v2@@4"(
|
|
|
|
// X64: define x86_vectorcallcc void @"\01v2@@8"(
|
|
|
|
|
|
|
|
void __vectorcall v3(short a) {}
|
|
|
|
// CHECK: define x86_vectorcallcc void @"\01v3@@4"(
|
|
|
|
// X64: define x86_vectorcallcc void @"\01v3@@8"(
|
|
|
|
|
|
|
|
void __vectorcall v4(int a) {}
|
|
|
|
// CHECK: define x86_vectorcallcc void @"\01v4@@4"(
|
|
|
|
// X64: define x86_vectorcallcc void @"\01v4@@8"(
|
|
|
|
|
|
|
|
void __vectorcall v5(long long a) {}
|
|
|
|
// CHECK: define x86_vectorcallcc void @"\01v5@@8"(
|
|
|
|
// X64: define x86_vectorcallcc void @"\01v5@@8"(
|
|
|
|
|
|
|
|
void __vectorcall v6(char a, char b) {}
|
|
|
|
// CHECK: define x86_vectorcallcc void @"\01v6@@8"(
|
|
|
|
// X64: define x86_vectorcallcc void @"\01v6@@16"(
|