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
47 lines
1.6 KiB
HLSL
47 lines
1.6 KiB
HLSL
// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -fnative-int16-type -emit-llvm-only -disable-llvm-passes -verify
|
|
|
|
uint2 test_too_few_arg() {
|
|
return __builtin_hlsl_adduint64();
|
|
// expected-error@-1 {{too few arguments to function call, expected 2, have 0}}
|
|
}
|
|
|
|
uint4 test_too_many_arg(uint4 a) {
|
|
return __builtin_hlsl_adduint64(a, a, a);
|
|
// expected-error@-1 {{too many arguments to function call, expected 2, have 3}}
|
|
}
|
|
|
|
uint2 test_mismatched_arg_types(uint2 a, uint4 b) {
|
|
return __builtin_hlsl_adduint64(a, b);
|
|
// expected-error@-1 {{all arguments to '__builtin_hlsl_adduint64' must have the same type}}
|
|
}
|
|
|
|
uint2 test_bad_num_arg_elements(uint3 a, uint3 b) {
|
|
return __builtin_hlsl_adduint64(a, b);
|
|
// expected-error@-1 {{incorrect number of bits in vector operand (expected a multiple of 64 bits, have 96)}}
|
|
}
|
|
|
|
uint2 test_scalar_arg_type(uint a) {
|
|
return __builtin_hlsl_adduint64(a, a);
|
|
// expected-error@-1 {{1st argument must be a vector of unsigned integer types (was 'uint' (aka 'unsigned int'))}}
|
|
}
|
|
|
|
uint2 test_uint64_args(uint16_t2 a) {
|
|
return __builtin_hlsl_adduint64(a, a);
|
|
// expected-error@-1 {{incorrect number of bits in integer (expected 32 bits, have 16)}}
|
|
}
|
|
|
|
uint2 test_signed_integer_args(int2 a, int2 b) {
|
|
return __builtin_hlsl_adduint64(a, b);
|
|
// expected-error@-1 {{1st argument must be a vector of unsigned integer types (was 'int2' (aka 'vector<int, 2>'))}}
|
|
}
|
|
|
|
struct S {
|
|
uint2 a;
|
|
};
|
|
|
|
uint2 test_incorrect_arg_type(S a) {
|
|
return __builtin_hlsl_adduint64(a, a);
|
|
// expected-error@-1 {{1st argument must be a vector of unsigned integer types (was 'S')}}
|
|
}
|
|
|