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
123 lines
3.0 KiB
C
123 lines
3.0 KiB
C
// REQUIRES: powerpc-registered-target
|
|
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-linux-gnu \
|
|
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
|
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-linux-gnu \
|
|
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
|
// RUN: %clang_cc1 -O2 -triple powerpc-unknown-aix \
|
|
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
|
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-aix \
|
|
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
|
|
|
extern double da;
|
|
double test_fcfid() {
|
|
// CHECK-LABEL: test_fcfid
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fcfid(double %0)
|
|
return __builtin_ppc_fcfid(da);
|
|
}
|
|
|
|
double test_xl_fcfid() {
|
|
// CHECK-LABEL: test_xl_fcfid
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fcfid(double %0)
|
|
return __fcfid(da);
|
|
}
|
|
|
|
double test_fcfud() {
|
|
// CHECK-LABEL: test_fcfud
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fcfud(double %0)
|
|
return __builtin_ppc_fcfud(da);
|
|
}
|
|
|
|
double test_xl_fcfud() {
|
|
// CHECK-LABEL: test_xl_fcfud
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fcfud(double %0)
|
|
return __fcfud(da);
|
|
}
|
|
|
|
double test_fctid() {
|
|
// CHECK-LABEL: test_fctid
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fctid(double %0)
|
|
return __builtin_ppc_fctid(da);
|
|
}
|
|
|
|
double test_xl_fctid() {
|
|
// CHECK-LABEL: test_xl_fctid
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fctid(double %0)
|
|
return __fctid(da);
|
|
}
|
|
|
|
double test_fctidz() {
|
|
// CHECK-LABEL: test_fctidz
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fctidz(double %0)
|
|
return __builtin_ppc_fctidz(da);
|
|
}
|
|
|
|
double test_xl_fctidz() {
|
|
// CHECK-LABEL: test_xl_fctidz
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fctidz(double %0)
|
|
return __fctidz(da);
|
|
}
|
|
|
|
double test_fctiw() {
|
|
// CHECK-LABEL: test_fctiw
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fctiw(double %0)
|
|
return __builtin_ppc_fctiw(da);
|
|
}
|
|
|
|
double test_xl_fctiw() {
|
|
// CHECK-LABEL: test_xl_fctiw
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fctiw(double %0)
|
|
return __fctiw(da);
|
|
}
|
|
|
|
double test_fctiwz() {
|
|
// CHECK-LABEL: test_fctiwz
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fctiwz(double %0)
|
|
return __builtin_ppc_fctiwz(da);
|
|
}
|
|
|
|
double test_xl_fctiwz() {
|
|
// CHECK-LABEL: test_xl_fctiwz
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fctiwz(double %0)
|
|
return __fctiwz(da);
|
|
}
|
|
|
|
double test_fctudz() {
|
|
// CHECK-LABEL: test_fctudz
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fctudz(double %0)
|
|
return __builtin_ppc_fctudz(da);
|
|
}
|
|
|
|
double test_xl_fctudz() {
|
|
// CHECK-LABEL: test_xl_fctudz
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fctudz(double %0)
|
|
return __fctudz(da);
|
|
}
|
|
|
|
double test_fctuwz() {
|
|
// CHECK-LABEL: test_fctuwz
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fctuwz(double %0)
|
|
return __builtin_ppc_fctuwz(da);
|
|
}
|
|
|
|
double test_xl_fctuwz() {
|
|
// CHECK-LABEL: test_xl_fctuwz
|
|
// CHECK-NEXT: entry:
|
|
// CHECK: double @llvm.ppc.fctuwz(double %0)
|
|
return __fctuwz(da);
|
|
}
|