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
95 lines
4.1 KiB
C
95 lines
4.1 KiB
C
// RUN: not %clang_cc1 -triple powerpc-ibm-aix -target-cpu pwr9 \
|
|
// RUN: -emit-llvm %s -o - 2>&1 | FileCheck %s --check-prefix=AIX32-ERROR
|
|
// RUN: not %clang_cc1 -triple powerpc64-ibm-aix -target-cpu pwr9 \
|
|
// RUN: -emit-llvm %s -o - 2>&1 | FileCheck %s --check-prefix=FC-ERROR
|
|
|
|
void test_amo() {
|
|
unsigned int *ptr1, value1;
|
|
// AIX32-ERROR-COUNT-2: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_lwat(ptr1, value1, 0);
|
|
// FC-ERROR: argument value 9 is outside the valid range [0-4, 6, 8]
|
|
__builtin_amo_lwat(ptr1, value1, 9);
|
|
|
|
unsigned long int *ptr2, value2;
|
|
// AIX32-ERROR-COUNT-2: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_ldat(ptr2, value2, 3);
|
|
// FC-ERROR: error: argument value 26 is outside the valid range [0-4, 6, 8]
|
|
__builtin_amo_ldat(ptr2, value2, 26);
|
|
|
|
signed int *ptr3, value3;
|
|
// AIX32-ERROR-COUNT-2: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_lwat_s(ptr3, value3, 0);
|
|
// FC-ERROR: argument value 2 is outside the valid range [0, 5, 7, 8]
|
|
__builtin_amo_lwat_s(ptr3, value3, 2);
|
|
|
|
signed long int *ptr4, value4;
|
|
// AIX32-ERROR-COUNT-2: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_ldat_s(ptr4, value4, 5);
|
|
// FC-ERROR: error: argument value 6 is outside the valid range [0, 5, 7, 8]
|
|
__builtin_amo_ldat_s(ptr4, value4, 6);
|
|
|
|
unsigned int *ptr5;
|
|
// AIX32-ERROR-COUNT-2: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_lwat_cond(ptr5, 24);
|
|
// FC-ERROR: argument value 20 is outside the valid range [24, 25, 28]
|
|
__builtin_amo_lwat_cond(ptr5, 20);
|
|
|
|
unsigned long int *ptr6;
|
|
// AIX32-ERROR-COUNT-2: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_ldat_cond(ptr6, 28);
|
|
// FC-ERROR: argument value 0 is outside the valid range [24, 25, 28]
|
|
__builtin_amo_ldat_cond(ptr6, 0);
|
|
|
|
signed int *ptr7;
|
|
// AIX32-ERROR-COUNT-2: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_lwat_cond_s(ptr7, 24);
|
|
// FC-ERROR: argument value 20 is outside the valid range [24, 25, 28]
|
|
__builtin_amo_lwat_cond_s(ptr7, 20);
|
|
|
|
signed long int *ptr8;
|
|
// AIX32-ERROR-COUNT-2: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_ldat_cond_s(ptr6, 28);
|
|
// FC-ERROR: argument value 0 is outside the valid range [24, 25, 28]
|
|
__builtin_amo_ldat_cond_s(ptr6, 0);
|
|
|
|
unsigned int *ptr9, value9;
|
|
// AIX32-ERROR-COUNT-2: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_stwat(ptr9, value9, 0);
|
|
// FC-ERROR: error: argument value 5 is outside the valid range [0-4, 6, 24]
|
|
__builtin_amo_stwat(ptr9, value9, 5);
|
|
|
|
unsigned long int *ptr10, value10;
|
|
// AIX32-ERROR-COUNT-2: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_stdat(ptr10, value10, 24);
|
|
// FC-ERROR: error: argument value 10 is outside the valid range [0-4, 6, 24]
|
|
__builtin_amo_stdat(ptr10, value10, 10);
|
|
|
|
signed int *ptr11, value11;
|
|
// AIX32-ERROR-COUNT-2: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_stwat_s(ptr11, value11, 0);
|
|
// FC-ERROR: error: argument value 1 is outside the valid range [0, 5, 7, 24]
|
|
__builtin_amo_stwat_s(ptr11, value11, 1);
|
|
|
|
signed long int *ptr12, value12;
|
|
// AIX32-ERROR-COUNT-2: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_stdat_s(ptr12, value12, 24);
|
|
// FC-ERROR: error: argument value 6 is outside the valid range [0, 5, 7, 24]
|
|
__builtin_amo_stdat_s(ptr12, value12, 6);
|
|
|
|
unsigned int *ptr13, value13, value14;
|
|
// AIX32-ERROR: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_lwat_csne(ptr13, value12, value14);
|
|
|
|
unsigned long int *ptr14, value15, value16;
|
|
// AIX32-ERROR: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_ldat_csne(ptr14, value15, value16);
|
|
|
|
signed int *ptr15, value17, value18;
|
|
// AIX32-ERROR: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_lwat_csne_s(ptr15, value17, value18);
|
|
|
|
signed long int *ptr16, value19, value20;
|
|
// AIX32-ERROR: error: this builtin is only available on 64-bit targets
|
|
__builtin_amo_ldat_csne_s(ptr16, value19, value20);
|
|
}
|