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
94 lines
2.9 KiB
C++
94 lines
2.9 KiB
C++
// RUN: %clang_cc1 %s -complex-range=promoted -fsyntax-only -triple x86_64-unknown-linux -verify=no-diag \
|
|
// RUN: -DDIV_CC -DDIV_RC -DDIVASSIGN -DDIVMIXEDFD -DDIVMIXEDFD2 -DDIVMIXEDID -DDIVASSIGN_MIXEDFD
|
|
|
|
// RUN: %clang_cc1 %s -complex-range=promoted -fsyntax-only -triple x86_64-unknown-windows -verify=no-diag
|
|
// RUN: %clang_cc1 %s -complex-range=promoted -fsyntax-only -triple x86_64-unknown-windows -verify -DDIV_CC
|
|
// RUN: %clang_cc1 %s -complex-range=promoted -fsyntax-only -triple x86_64-unknown-windows -verify -DDIV_RC
|
|
// RUN: %clang_cc1 %s -complex-range=promoted -fsyntax-only -triple x86_64-unknown-windows -verify -DDIVASSIGN
|
|
// RUN: %clang_cc1 %s -complex-range=promoted -fsyntax-only -triple x86_64-unknown-windows -verify -DDIVMIXEDFD
|
|
// RUN: %clang_cc1 %s -complex-range=promoted -fsyntax-only -triple x86_64-unknown-windows -verify -DDIVMIXEDFD2
|
|
// RUN: %clang_cc1 %s -complex-range=promoted -fsyntax-only -triple x86_64-unknown-windows -verify -DDIVMIXEDID
|
|
// RUN: %clang_cc1 %s -complex-range=promoted -fsyntax-only -triple x86_64-unknown-windows -verify -DDIVASSIGN_MIXEDFD
|
|
|
|
_Complex double div_ccf(_Complex float a, _Complex float b) {
|
|
return a / b;
|
|
}
|
|
|
|
_Complex double div_cr(_Complex double a, double b) {
|
|
return a / b;
|
|
}
|
|
|
|
_Complex double div_cr_mixed1(_Complex double a, float b) {
|
|
return a / b;
|
|
}
|
|
|
|
_Complex double div_cr_mixed2(_Complex float a, double b) {
|
|
return a / b;
|
|
}
|
|
|
|
_Complex double div_rr(double a, double b) {
|
|
return a / b;
|
|
}
|
|
|
|
_Complex int div_ii(_Complex int a, _Complex int b) {
|
|
return a / b;
|
|
}
|
|
|
|
struct UserT {
|
|
friend UserT operator/(UserT, _Complex double);
|
|
friend UserT operator/(_Complex double, UserT);
|
|
};
|
|
|
|
UserT div_uc(UserT a, _Complex double b) {
|
|
return a / b;
|
|
}
|
|
|
|
UserT div_cu(_Complex double a, UserT b) {
|
|
return a / b;
|
|
}
|
|
|
|
#ifdef DIV_CC
|
|
_Complex double div_cc(_Complex double a, const _Complex double b) {
|
|
return a / b; // #1
|
|
}
|
|
#endif // DIV_CC
|
|
|
|
#ifdef DIV_RC
|
|
_Complex double div_rc(double a, _Complex float b) {
|
|
return a / b; // #1
|
|
}
|
|
#endif // DIV_RC
|
|
|
|
#ifdef DIVASSIGN
|
|
_Complex double divassign(_Complex double a, _Complex double b) {
|
|
return a /= b; // #1
|
|
}
|
|
#endif // DIVASSIGN
|
|
|
|
#ifdef DIVMIXEDFD
|
|
_Complex double divmixedfd(_Complex float a, _Complex double b) {
|
|
return a / b; // #1
|
|
}
|
|
#endif // DIVMIXEDFD
|
|
|
|
#ifdef DIVMIXEDFD2
|
|
_Complex double divmixedfd2(_Complex double a, _Complex float b) {
|
|
return a / b; // #1
|
|
}
|
|
#endif // DIVMIXEDFD2
|
|
|
|
#ifdef DIVMIXEDID
|
|
_Complex double divmixedid(_Complex int a, _Complex double b) {
|
|
return a / b; // #1
|
|
}
|
|
#endif // DIVMIXEDID
|
|
|
|
#ifdef DIVASSIGN_MIXEDFD
|
|
_Complex double divassign_mixedfd(_Complex float a, _Complex double b) {
|
|
return a /= b; // #1
|
|
}
|
|
#endif // DIVMIXEDFD
|
|
|
|
// no-diag-no-diagnostics
|
|
// expected-warning@#1 {{excess precision is requested but the target does not support excess precision which may result in observable differences in complex division behavior}}
|