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
58 lines
2.4 KiB
C
58 lines
2.4 KiB
C
// RUN: %clang_cc1 -w -fblocks -ffreestanding -triple i386-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -w -fblocks -ffreestanding -triple i386-pc-linux-gnu -target-feature +avx -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -w -fblocks -ffreestanding -triple i386-pc-linux-gnu -target-feature +avx512f -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -w -fblocks -ffreestanding -triple i386-pc-linux-mingw -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -w -fblocks -ffreestanding -triple i386-pc-linux-mingw -target-feature +avx -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -w -fblocks -ffreestanding -triple i386-pc-linux-mingw -target-feature +avx512f -emit-llvm -o - %s | FileCheck %s
|
|
|
|
#include <immintrin.h>
|
|
|
|
// CHECK-LABEL: define dso_local void @testm128
|
|
// CHECK-LABEL: %argp.cur = load ptr, ptr %args, align 4
|
|
// CHECK-NEXT: %0 = getelementptr inbounds i8, ptr %argp.cur, i32 15
|
|
// CHECK-NEXT: %argp.cur.aligned = call ptr @llvm.ptrmask.p0.i32(ptr %0, i32 -16)
|
|
void testm128(int argCount, ...) {
|
|
__m128 res;
|
|
__builtin_va_list args;
|
|
__builtin_va_start(args, argCount);
|
|
res = __builtin_va_arg(args, __m128);
|
|
__builtin_va_end(args);
|
|
}
|
|
|
|
// CHECK-LABEL: define dso_local void @testm256
|
|
// CHECK-LABEL: %argp.cur = load ptr, ptr %args, align 4
|
|
// CHECK-NEXT: %0 = getelementptr inbounds i8, ptr %argp.cur, i32 31
|
|
// CHECK-NEXT: %argp.cur.aligned = call ptr @llvm.ptrmask.p0.i32(ptr %0, i32 -32)
|
|
void testm256(int argCount, ...) {
|
|
__m256 res;
|
|
__builtin_va_list args;
|
|
__builtin_va_start(args, argCount);
|
|
res = __builtin_va_arg(args, __m256);
|
|
__builtin_va_end(args);
|
|
}
|
|
|
|
// CHECK-LABEL: define dso_local void @testm512
|
|
// CHECK-LABEL: %argp.cur = load ptr, ptr %args, align 4
|
|
// CHECK-NEXT: %0 = getelementptr inbounds i8, ptr %argp.cur, i32 63
|
|
// CHECK-NEXT: %argp.cur.aligned = call ptr @llvm.ptrmask.p0.i32(ptr %0, i32 -64)
|
|
void testm512(int argCount, ...) {
|
|
__m512 res;
|
|
__builtin_va_list args;
|
|
__builtin_va_start(args, argCount);
|
|
res = __builtin_va_arg(args, __m512);
|
|
__builtin_va_end(args);
|
|
}
|
|
|
|
// CHECK-LABEL: define dso_local void @testPastArguments
|
|
// CHECK: call void (i32, ...) @testm128(i32 noundef 1, <4 x float> noundef %0)
|
|
// CHECK: call void (i32, ...) @testm256(i32 noundef 1, <8 x float> noundef %1)
|
|
// CHECK: call void (i32, ...) @testm512(i32 noundef 1, <16 x float> noundef %2)
|
|
void testPastArguments(void) {
|
|
__m128 a;
|
|
__m256 b;
|
|
__m512 c;
|
|
testm128(1, a);
|
|
testm256(1, b);
|
|
testm512(1, c);
|
|
}
|