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
81 lines
2.1 KiB
HLSL
81 lines
2.1 KiB
HLSL
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
|
|
// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type -fnative-int16-type \
|
|
// RUN: -emit-llvm -disable-llvm-passes -O3 -o - | FileCheck %s
|
|
|
|
#ifdef __HLSL_ENABLE_16_BIT
|
|
// CHECK: define hidden noundef i16 @
|
|
// CHECK: call i16 @llvm.bitreverse.i16(
|
|
uint16_t test_bitreverse_ushort(uint16_t p0)
|
|
{
|
|
return reversebits(p0);
|
|
}
|
|
// CHECK: define hidden noundef <2 x i16> @
|
|
// CHECK: call <2 x i16> @llvm.bitreverse.v2i16
|
|
uint16_t2 test_bitreverse_ushort2(uint16_t2 p0)
|
|
{
|
|
return reversebits(p0);
|
|
}
|
|
// CHECK: define hidden noundef <3 x i16> @
|
|
// CHECK: call <3 x i16> @llvm.bitreverse.v3i16
|
|
uint16_t3 test_bitreverse_ushort3(uint16_t3 p0)
|
|
{
|
|
return reversebits(p0);
|
|
}
|
|
// CHECK: define hidden noundef <4 x i16> @
|
|
// CHECK: call <4 x i16> @llvm.bitreverse.v4i16
|
|
uint16_t4 test_bitreverse_ushort4(uint16_t4 p0)
|
|
{
|
|
return reversebits(p0);
|
|
}
|
|
#endif
|
|
|
|
// CHECK: define hidden noundef i32 @
|
|
// CHECK: call i32 @llvm.bitreverse.i32(
|
|
int test_bitreverse_uint(uint p0)
|
|
{
|
|
return reversebits(p0);
|
|
}
|
|
// CHECK: define hidden noundef <2 x i32> @
|
|
// CHECK: call <2 x i32> @llvm.bitreverse.v2i32
|
|
uint2 test_bitreverse_uint2(uint2 p0)
|
|
{
|
|
return reversebits(p0);
|
|
}
|
|
// CHECK: define hidden noundef <3 x i32> @
|
|
// CHECK: call <3 x i32> @llvm.bitreverse.v3i32
|
|
uint3 test_bitreverse_uint3(uint3 p0)
|
|
{
|
|
return reversebits(p0);
|
|
}
|
|
// CHECK: define hidden noundef <4 x i32> @
|
|
// CHECK: call <4 x i32> @llvm.bitreverse.v4i32
|
|
uint4 test_bitreverse_uint4(uint4 p0)
|
|
{
|
|
return reversebits(p0);
|
|
}
|
|
|
|
// CHECK: define hidden noundef i64 @
|
|
// CHECK: call i64 @llvm.bitreverse.i64(
|
|
uint64_t test_bitreverse_long(uint64_t p0)
|
|
{
|
|
return reversebits(p0);
|
|
}
|
|
// CHECK: define hidden noundef <2 x i64> @
|
|
// CHECK: call <2 x i64> @llvm.bitreverse.v2i64
|
|
uint64_t2 test_bitreverse_long2(uint64_t2 p0)
|
|
{
|
|
return reversebits(p0);
|
|
}
|
|
// CHECK: define hidden noundef <3 x i64> @
|
|
// CHECK: call <3 x i64> @llvm.bitreverse.v3i64
|
|
uint64_t3 test_bitreverse_long3(uint64_t3 p0)
|
|
{
|
|
return reversebits(p0);
|
|
}
|
|
// CHECK: define hidden noundef <4 x i64> @
|
|
// CHECK: call <4 x i64> @llvm.bitreverse.v4i64
|
|
uint64_t4 test_bitreverse_long4(uint64_t4 p0)
|
|
{
|
|
return reversebits(p0);
|
|
}
|