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
172 lines
9.6 KiB
C
172 lines
9.6 KiB
C
// RUN: echo "int main() { return __builtin_cpu_supports(\"4xxmac\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"altivec\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=204 -DOP=ugt -DBIT=i32 -DVALUE=0 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCONF
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"archpmu\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"booke\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"cellbe\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"darn\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=4 -DOP=uge -DBIT=i32 -DVALUE=131072 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCONF
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"dscr\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=4 -DOP=uge -DBIT=i32 -DVALUE=65536 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCONF
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"ebb\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=4 -DOP=uge -DBIT=i32 -DVALUE=65536 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCONF
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"efpdouble\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"efpsingle\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"pa6t\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"fpu\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=1 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"htm\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=4 -DOP=ugt -DLABEL=59 -DBIT=i64 -DVALUE=0 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCALL
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"htm-nosc\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"htm-no-suspend\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"ic_snoop\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"isel\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=1 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"mma\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=4 -DOP=ugt -DLABEL=62 -DBIT=i64 -DVALUE=0 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCALL
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"mmu\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=1 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"notb\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"arch_2_05\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=1 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"arch_2_06\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=4 -DOP=uge -DBIT=i32 -DVALUE=32768 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCONF
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"arch_2_07\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=4 -DOP=uge -DBIT=i32 -DVALUE=65536 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCONF
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"arch_3_00\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=4 -DOP=uge -DBIT=i32 -DVALUE=131072 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCONF
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"arch_3_1\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=4 -DOP=uge -DBIT=i32 -DVALUE=262144 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCONF
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"dfp\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=224 -DOP=ne -DBIT=i32 -DVALUE=0 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCONF
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"power4\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=1 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"power5\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=1 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"power5+\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=1 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"power6x\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"ppc32\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=1 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"ppc601\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"ppc64\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=1 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"ppcle\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"smt\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=196 -DMASK=3 -DOP=eq -DBIT=i32 -DVALUE=3 \
|
|
// RUN: --check-prefixes=CHECKOP,OPMASK,SYSCONF
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"spe\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"scv\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"tar\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=4 -DOP=uge -DBIT=i32 -DVALUE=65536 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCONF
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"true_le\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=1 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"ucache\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=20 -DMASK=2 -DOP=eq -DBIT=i32 -DVALUE=2 \
|
|
// RUN: --check-prefixes=CHECKOP,OPMASK,SYSCONF
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"vcrypto\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck -DBOOL=0 %s
|
|
|
|
// RUN: echo "int main() { return __builtin_cpu_supports(\"vsx\");}" > %t.c
|
|
// RUN: %clang_cc1 -triple powerpc-ibm-aix7.2.0.0 -emit-llvm -o - %t.c | FileCheck %s -DPOS=204 -DOP=ugt -DBIT=i32 -DVALUE=1 \
|
|
// RUN: --check-prefixes=CHECKOP,OPRT,SYSCONF
|
|
|
|
// CHECK: define i32 @main() #0 {
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: %retval = alloca i32, align 4
|
|
// CHECK-NEXT: store i32 0, ptr %retval, align 4
|
|
// CHECK-NEXT: ret i32 [[BOOL]]
|
|
// CHECK-NEXT: }
|
|
|
|
// SYSCONF: @_system_configuration = external global { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i64, i64, i64, i64, i32, i32, i32, i32, i32, i32, i64, i32, i8, i8, i8, i8, i32, i32, i16, i16, [3 x i32], i32 }
|
|
|
|
// CHECKOP: define i32 @main() #0 {
|
|
// CHECKOP-NEXT: entry:
|
|
// CHECKOP-NEXT: %retval = alloca i32, align 4
|
|
// CHECKOP-NEXT: store i32 0, ptr %retval, align 4
|
|
|
|
// SYSCONF-NEXT: %0 = load i32, ptr getelementptr inbounds nuw (i8, ptr @_system_configuration, i32 [[POS]]), align 4
|
|
// SYSCALL-NEXT: %0 = call i64 @getsystemcfg(i32 [[LABEL]])
|
|
|
|
// OPRT-NEXT: %1 = icmp [[OP]] [[BIT]] %0, [[VALUE]]
|
|
// OPRT-NEXT: %conv = zext i1 %1 to i32
|
|
|
|
// OPMASK-NEXT: %1 = and i32 %0, [[MASK]]
|
|
// OPMASK-NEXT: %2 = icmp [[OP]] i32 %1, [[VALUE]]
|
|
// OPMASK-NEXT: %conv = zext i1 %2 to i32
|
|
|
|
// CHECKOP-NEXT: ret i32 %conv
|
|
// CHECKOP-NEXT: }
|
|
|
|
// SYSCALL: declare i64 @getsystemcfg(i32)
|
|
|
|
|