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
59 lines
2.3 KiB
C
59 lines
2.3 KiB
C
// RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse4.2 -emit-llvm -o - -Wall -Werror | FileCheck %s --check-prefixes=CHECK,CHECK64
|
|
// RUN: %clang_cc1 -ffreestanding %s -triple=i686-apple-darwin -target-feature +sse4.2 -emit-llvm -o - -Wall -Werror | FileCheck %s
|
|
// RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +crc32 -emit-llvm -o - -Wall -Werror | FileCheck %s --check-prefixes=CHECK,CHECK64
|
|
// RUN: %clang_cc1 -ffreestanding %s -triple=i686-apple-darwin -target-feature +crc32 -emit-llvm -o - -Wall -Werror | FileCheck %s
|
|
|
|
#include <x86intrin.h>
|
|
|
|
unsigned int test__crc32b(unsigned int CRC, unsigned char V) {
|
|
// CHECK-LABEL: test__crc32b
|
|
// CHECK: call i32 @llvm.x86.sse42.crc32.32.8(i32 %{{.*}}, i8 %{{.*}})
|
|
return __crc32b(CRC, V);
|
|
}
|
|
|
|
unsigned int test__crc32w(unsigned int CRC, unsigned short V) {
|
|
// CHECK-LABEL: test__crc32w
|
|
// CHECK: call i32 @llvm.x86.sse42.crc32.32.16(i32 %{{.*}}, i16 %{{.*}})
|
|
return __crc32w(CRC, V);
|
|
}
|
|
|
|
unsigned int test__crc32d(unsigned int CRC, unsigned int V) {
|
|
// CHECK-LABEL: test__crc32d
|
|
// CHECK: call i32 @llvm.x86.sse42.crc32.32.32(i32 %{{.*}}, i32 %{{.*}})
|
|
return __crc32d(CRC, V);
|
|
}
|
|
|
|
#ifdef __x86_64__
|
|
unsigned long long test__crc32q(unsigned long long CRC, unsigned long long V) {
|
|
// CHECK64-LABEL: test__crc32q
|
|
// CHECK64: call i64 @llvm.x86.sse42.crc32.64.64(i64 %{{.*}}, i64 %{{.*}})
|
|
return __crc32q(CRC, V);
|
|
}
|
|
#endif
|
|
|
|
unsigned int test_mm_crc32_u8(unsigned int CRC, unsigned char V) {
|
|
// CHECK-LABEL: test_mm_crc32_u8
|
|
// CHECK: call i32 @llvm.x86.sse42.crc32.32.8(i32 %{{.*}}, i8 %{{.*}})
|
|
return _mm_crc32_u8(CRC, V);
|
|
}
|
|
|
|
unsigned int test_mm_crc32_u16(unsigned int CRC, unsigned short V) {
|
|
// CHECK-LABEL: test_mm_crc32_u16
|
|
// CHECK: call i32 @llvm.x86.sse42.crc32.32.16(i32 %{{.*}}, i16 %{{.*}})
|
|
return _mm_crc32_u16(CRC, V);
|
|
}
|
|
|
|
unsigned int test_mm_crc32_u32(unsigned int CRC, unsigned int V) {
|
|
// CHECK-LABEL: test_mm_crc32_u32
|
|
// CHECK: call i32 @llvm.x86.sse42.crc32.32.32(i32 %{{.*}}, i32 %{{.*}})
|
|
return _mm_crc32_u32(CRC, V);
|
|
}
|
|
|
|
#ifdef __x86_64__
|
|
unsigned long long test_mm_crc32_u64(unsigned long long CRC, unsigned long long V) {
|
|
// CHECK64-LABEL: test_mm_crc32_u64
|
|
// CHECK64: call i64 @llvm.x86.sse42.crc32.64.64(i64 %{{.*}}, i64 %{{.*}})
|
|
return _mm_crc32_u64(CRC, V);
|
|
}
|
|
#endif
|