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
46 lines
1.6 KiB
C
46 lines
1.6 KiB
C
// RUN: %clang_cc1 %s -triple x86_64-unknown-linux-gnu -emit-llvm -target-feature +avx512f -o - | FileCheck %s
|
|
|
|
typedef long long __m128i __attribute__ ((vector_size (16)));
|
|
typedef long long __m256i __attribute__ ((vector_size (32)));
|
|
typedef long long __m512i __attribute__ ((vector_size (64)));
|
|
|
|
// CHECK: define{{.*}} <2 x i64> @testXMMout(ptr noundef %p) #0
|
|
__m128i testXMMout(__m128i *p) {
|
|
__m128i xmm0;
|
|
__asm__("vmovdqu %1, %0" :"=v"(xmm0) : "m"(*(__m128i*)p));
|
|
return xmm0;
|
|
}
|
|
|
|
// CHECK: define{{.*}} <4 x i64> @testYMMout(ptr noundef %p) #1
|
|
__m256i testYMMout(__m256i *p) {
|
|
__m256i ymm0;
|
|
__asm__("vmovdqu %1, %0" :"=v"(ymm0) : "m"(*(__m256i*)p));
|
|
return ymm0;
|
|
}
|
|
|
|
// CHECK: define{{.*}} <8 x i64> @testZMMout(ptr noundef %p) #2
|
|
__m512i testZMMout(__m512i *p) {
|
|
__m512i zmm0;
|
|
__asm__("vmovdqu64 %1, %0" :"=v"(zmm0) : "m"(*(__m512i*)p));
|
|
return zmm0;
|
|
}
|
|
|
|
// CHECK: define{{.*}} void @testXMMin(<2 x i64> noundef %xmm0, ptr noundef %p) #0
|
|
void testXMMin(__m128i xmm0, __m128i *p) {
|
|
__asm__("vmovdqu %0, %1" : : "v"(xmm0), "m"(*(__m128i*)p));
|
|
}
|
|
|
|
// CHECK: define{{.*}} void @testYMMin(<4 x i64> noundef %ymm0, ptr noundef %p) #1
|
|
void testYMMin(__m256i ymm0, __m256i *p) {
|
|
__asm__("vmovdqu %0, %1" : : "v"(ymm0), "m"(*(__m256i*)p));
|
|
}
|
|
|
|
// CHECK: define{{.*}} void @testZMMin(<8 x i64> noundef %zmm0, ptr noundef %p) #2
|
|
void testZMMin(__m512i zmm0, __m512i *p) {
|
|
__asm__("vmovdqu64 %0, %1" : : "v"(zmm0), "m"(*(__m512i*)p));
|
|
}
|
|
|
|
// CHECK: attributes #0 = {{.*}}"min-legal-vector-width"="128"
|
|
// CHECK: attributes #1 = {{.*}}"min-legal-vector-width"="256"
|
|
// CHECK: attributes #2 = {{.*}}"min-legal-vector-width"="512"
|