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
70 lines
2.8 KiB
LLVM
70 lines
2.8 KiB
LLVM
; RUN: llc -mtriple=arm64-unknown-linux-gnu %s -o - | FileCheck %s --check-prefixes=ELF
|
|
; RUN: llc -mtriple=arm64-apple-darwin %s -o - | FileCheck %s --check-prefix=MACHO
|
|
; RUN: llc -mtriple=arm64-apple-darwin %s -global-isel -o - | FileCheck %s --check-prefix=MACHO
|
|
|
|
define internal ptr @the_resolver() {
|
|
entry:
|
|
ret ptr null
|
|
}
|
|
; ELF: .type the_resolver,@function
|
|
; ELF-NEXT: the_resolver:
|
|
|
|
; MACHO: .p2align 2
|
|
; MACHO-NEXT: _the_resolver:
|
|
|
|
|
|
@global_ifunc = ifunc i32 (i32), ptr @the_resolver
|
|
; ELF: .globl global_ifunc
|
|
; ELF-NEXT: .type global_ifunc,@gnu_indirect_function
|
|
; ELF-NEXT: global_ifunc = the_resolver
|
|
|
|
; MACHO: .section __DATA,__data
|
|
; MACHO-NEXT: .p2align 3, 0x0
|
|
; MACHO-NEXT: _global_ifunc.lazy_pointer:
|
|
; MACHO-NEXT: .quad _global_ifunc.stub_helper
|
|
|
|
; MACHO: .section __TEXT,__text,regular,pure_instructions
|
|
; MACHO-NEXT: .globl _global_ifunc
|
|
; MACHO-NEXT: .p2align 2
|
|
; MACHO-NEXT: _global_ifunc:
|
|
; MACHO-NEXT: adrp x16, _global_ifunc.lazy_pointer@GOTPAGE
|
|
; MACHO-NEXT: ldr x16, [x16, _global_ifunc.lazy_pointer@GOTPAGEOFF]
|
|
; MACHO-NEXT: ldr x16, [x16]
|
|
; MACHO-NEXT: br x16
|
|
; MACHO-NEXT: .p2align 2
|
|
; MACHO-NEXT: _global_ifunc.stub_helper:
|
|
; MACHO-NEXT: stp x29, x30, [sp, #-16]!
|
|
; MACHO-NEXT: mov x29, sp
|
|
; MACHO-NEXT: stp x1, x0, [sp, #-16]!
|
|
; MACHO-NEXT: stp x3, x2, [sp, #-16]!
|
|
; MACHO-NEXT: stp x5, x4, [sp, #-16]!
|
|
; MACHO-NEXT: stp x7, x6, [sp, #-16]!
|
|
; MACHO-NEXT: stp d1, d0, [sp, #-16]!
|
|
; MACHO-NEXT: stp d3, d2, [sp, #-16]!
|
|
; MACHO-NEXT: stp d5, d4, [sp, #-16]!
|
|
; MACHO-NEXT: stp d7, d6, [sp, #-16]!
|
|
; MACHO-NEXT: bl _the_resolver
|
|
; MACHO-NEXT: adrp x16, _global_ifunc.lazy_pointer@GOTPAGE
|
|
; MACHO-NEXT: ldr x16, [x16, _global_ifunc.lazy_pointer@GOTPAGEOFF]
|
|
; MACHO-NEXT: str x0, [x16]
|
|
; MACHO-NEXT: add x16, x0, #0
|
|
; MACHO-NEXT: ldp d7, d6, [sp], #16
|
|
; MACHO-NEXT: ldp d5, d4, [sp], #16
|
|
; MACHO-NEXT: ldp d3, d2, [sp], #16
|
|
; MACHO-NEXT: ldp d1, d0, [sp], #16
|
|
; MACHO-NEXT: ldp x7, x6, [sp], #16
|
|
; MACHO-NEXT: ldp x5, x4, [sp], #16
|
|
; MACHO-NEXT: ldp x3, x2, [sp], #16
|
|
; MACHO-NEXT: ldp x1, x0, [sp], #16
|
|
; MACHO-NEXT: ldp x29, x30, [sp], #16
|
|
; MACHO-NEXT: br x16
|
|
|
|
|
|
@weak_ifunc = weak ifunc i32 (i32), ptr @the_resolver
|
|
; ELF: .type weak_ifunc,@gnu_indirect_function
|
|
; MACHO-NOT: .weak_reference _weak_ifunc.lazy_pointer
|
|
; MACHO: _weak_ifunc.lazy_pointer:
|
|
; MACHO: .weak_reference _weak_ifunc
|
|
; MACHO: _weak_ifunc:
|
|
; MACHO-NOT: .weak_reference _weak_ifunc.stub_helper
|
|
; MACHO: _weak_ifunc.stub_helper: |