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
24 lines
1.1 KiB
C
24 lines
1.1 KiB
C
// We created a constructor function in compiler-rt/lib/builtins/ppc/init_ifuncs.c
|
|
// that reads an array contained in a certain named section of the object file.
|
|
// The compiler generates extra globals (one per ifunc) in that section.
|
|
// This test is to make sure the section name in the builtins library and the
|
|
// compiler match by checking the distance between the start and end of the
|
|
// section is "2*sizeof(void*)" because there's one ifunc in the entire program.
|
|
//
|
|
// REQUIRES: target={{.*aix.*}}
|
|
// RUN: %clang_builtins %s %librt -fno-integrated-as -o a.out
|
|
// RUN: llvm-nm -Xany --numeric-sort a.out | \
|
|
// RUN: FileCheck %s %if target-is-powerpc64 %{ --check-prefix=CHECK64 %} \
|
|
// RUN: %else %{ --check-prefix=CHECK %}
|
|
|
|
// CHECK: [[#%x,ADDR:]] W __start___ifunc_sec
|
|
// CHECK: [[#ADDR+8]] W __stop___ifunc_sec
|
|
// CHECK64: [[#%x,ADDR:]] W __start___ifunc_sec
|
|
// CHECK64: [[#ADDR+16]] W __stop___ifunc_sec
|
|
|
|
static int my_foo() { return 5; }
|
|
static void *foo_resolver() { return &my_foo; };
|
|
|
|
__attribute__((ifunc("foo_resolver"))) int foo();
|
|
int main() { return foo(); }
|