CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
48 lines
2.7 KiB
C
48 lines
2.7 KiB
C
// RUN: %clang_cc1 -triple i686-windows-msvc -emit-llvm -o - %s | FileCheck %s --check-prefix=X86
|
|
// RUN: %clang_cc1 -triple x86_64-windows-msvc -emit-llvm -o - %s | FileCheck %s --check-prefix=X64
|
|
// RUN: %clang_cc1 -triple x86_64-windows-gnu -emit-llvm -o - %s | FileCheck %s --check-prefix=X64
|
|
// RUN: %clang_cc1 -triple x86_64-cygwin -emit-llvm -o - %s | FileCheck %s --check-prefix=X64
|
|
// RUN: %clang_cc1 -triple i686-windows-msvc -emit-llvm -o - %s -fdefault-calling-conv=vectorcall | FileCheck %s --check-prefix=X86-VEC
|
|
// RUN: %clang_cc1 -triple x86_64-windows-msvc -emit-llvm -o - %s -fdefault-calling-conv=vectorcall | FileCheck %s --check-prefix=X64-VEC
|
|
|
|
void foo_default(const char *lpString1, const char *lpString2);
|
|
void __stdcall foo_std(const char *lpString1, const char *lpString2);
|
|
void __fastcall foo_fast(const char *lpString1, const char *lpString2);
|
|
void __vectorcall foo_vector(const char *lpString1, const char *lpString2);
|
|
|
|
void __cdecl bar(void) {
|
|
foo_default(0, 0);
|
|
foo_std(0, 0);
|
|
foo_fast(0, 0);
|
|
foo_vector(0, 0);
|
|
}
|
|
|
|
// X86-LABEL: define dso_local void @bar()
|
|
// X86: call void @foo_default(ptr noundef null, ptr noundef null)
|
|
// X86: call x86_stdcallcc void @"\01_foo_std@8"(ptr noundef null, ptr noundef null)
|
|
// X86: call x86_fastcallcc void @"\01@foo_fast@8"(ptr inreg noundef null, ptr inreg noundef null)
|
|
// X86: call x86_vectorcallcc void @"\01foo_vector@@8"(ptr inreg noundef null, ptr inreg noundef null)
|
|
// X86: ret void
|
|
|
|
// X64-LABEL: define dso_local void @bar()
|
|
// X64: call void @foo_default(ptr noundef null, ptr noundef null)
|
|
// X64: call void @foo_std(ptr noundef null, ptr noundef null)
|
|
// X64: call void @foo_fast(ptr noundef null, ptr noundef null)
|
|
// X64: call x86_vectorcallcc void @"\01foo_vector@@16"(ptr noundef null, ptr noundef null)
|
|
// X64: ret void
|
|
|
|
// X86-VEC-LABEL: define dso_local void @bar()
|
|
// X86-VEC: call x86_vectorcallcc void @"\01foo_default@@8"(ptr inreg noundef null, ptr inreg noundef null)
|
|
// X86-VEC: call x86_stdcallcc void @"\01_foo_std@8"(ptr noundef null, ptr noundef null)
|
|
// X86-VEC: call x86_fastcallcc void @"\01@foo_fast@8"(ptr inreg noundef null, ptr inreg noundef null)
|
|
// X86-VEC: call x86_vectorcallcc void @"\01foo_vector@@8"(ptr inreg noundef null, ptr inreg noundef null)
|
|
// X86-VEC: ret void
|
|
|
|
// X64-VEC-LABEL: define dso_local void @bar()
|
|
// X64-VEC: call x86_vectorcallcc void @"\01foo_default@@16"(ptr noundef null, ptr noundef null)
|
|
// X64-VEC: call void @foo_std(ptr noundef null, ptr noundef null)
|
|
// X64-VEC: call void @foo_fast(ptr noundef null, ptr noundef null)
|
|
// X64-VEC: call x86_vectorcallcc void @"\01foo_vector@@16"(ptr noundef null, ptr noundef null)
|
|
// X64-VEC: ret void
|
|
|