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
83 lines
3.1 KiB
ArmAsm
83 lines
3.1 KiB
ArmAsm
# REQUIRES: x86
|
|
# RUN: rm -rf %t; split-file %s %t
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/objc.o %t/objc.s
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/foo.o %t/foo.s
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/bar.o %t/bar.s
|
|
# RUN: llvm-ar csr %t/lib.a %t/objc.o %t/foo.o %t/bar.o
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/main.o %t/main.s
|
|
|
|
# The first line checks that we never demangle symbols in -why_load output.
|
|
# RUN: %lld %t/main.o %t/lib.a -o /dev/null -why_load -demangle | \
|
|
# RUN: FileCheck %s --check-prefix=WHY
|
|
# RUN: %lld %t/main.o -force_load %t/lib.a -o /dev/null -whyload | \
|
|
# RUN: FileCheck %s --check-prefix=WHYFORCE
|
|
# RUN: %lld %t/main.o %t/lib.a -o /dev/null -all_load -why_load | \
|
|
# RUN: FileCheck %s --check-prefix=WHYALL
|
|
# RUN: %lld %t/main.o -force_load %t/lib.a -o /dev/null -all_load -why_load | \
|
|
# RUN: FileCheck %s --check-prefix=WHYALLFORCE
|
|
|
|
# RUN: %lld %t/main.o %t/lib.a -o /dev/null -ObjC -why_load | \
|
|
# RUN: FileCheck %s --check-prefix=WHYOBJC
|
|
# RUN: %lld %t/main.o -force_load %t/lib.a -o /dev/null -ObjC -why_load | \
|
|
# RUN: FileCheck %s --check-prefix=WHYOBJCFORCE
|
|
# RUN: %lld %t/main.o %t/lib.a -o /dev/null -ObjC -all_load -why_load | \
|
|
# RUN: FileCheck %s --check-prefix=WHYOBJCALL
|
|
# RUN: %lld %t/main.o -force_load %t/lib.a -o /dev/null -ObjC -all_load -why_load | \
|
|
# RUN: FileCheck %s --check-prefix=WHYOBJCALLFORCE
|
|
|
|
# WHY-DAG: _bar forced load of {{.+}}lib.a(bar.o)
|
|
# WHY-DAG: __Z3foo forced load of {{.+}}lib.a(foo.o)
|
|
# WHY-NOT: {{.+}} forced load of {{.+}}lib.a(objc.o)
|
|
|
|
# WHYFORCE-DAG: -force_load forced load of {{.+}}lib.a(bar.o)
|
|
# WHYFORCE-DAG: -force_load forced load of {{.+}}lib.a(foo.o)
|
|
# WHYFORCE-DAG: -force_load forced load of {{.+}}lib.a(objc.o)
|
|
|
|
# WHYALL-DAG: -all_load forced load of {{.+}}lib.a(bar.o)
|
|
# WHYALL-DAG: -all_load forced load of {{.+}}lib.a(foo.o)
|
|
# WHYALL-DAG: -all_load forced load of {{.+}}lib.a(objc.o)
|
|
|
|
# WHYALLFORCE-DAG: -force_load forced load of {{.+}}lib.a(bar.o)
|
|
# WHYALLFORCE-DAG: -force_load forced load of {{.+}}lib.a(foo.o)
|
|
# WHYALLFORCE-DAG: -force_load forced load of {{.+}}lib.a(objc.o)
|
|
|
|
# WHYOBJC-DAG: _bar forced load of {{.+}}lib.a(bar.o)
|
|
# WHYOBJC-DAG: __Z3foo forced load of {{.+}}lib.a(foo.o)
|
|
# WHYOBJC-DAG: -ObjC forced load of {{.+}}lib.a(objc.o)
|
|
|
|
# WHYOBJCFORCE-DAG: -force_load forced load of {{.+}}lib.a(bar.o)
|
|
# WHYOBJCFORCE-DAG: -force_load forced load of {{.+}}lib.a(foo.o)
|
|
# WHYOBJCFORCE-DAG: -force_load forced load of {{.+}}lib.a(objc.o)
|
|
|
|
# WHYOBJCALL-DAG: -all_load forced load of {{.+}}lib.a(bar.o)
|
|
# WHYOBJCALL-DAG: -all_load forced load of {{.+}}lib.a(foo.o)
|
|
# WHYOBJCALL-DAG: -all_load forced load of {{.+}}lib.a(objc.o)
|
|
|
|
# WHYOBJCALLFORCE-DAG: -force_load forced load of {{.+}}lib.a(bar.o)
|
|
# WHYOBJCALLFORCE-DAG: -force_load forced load of {{.+}}lib.a(foo.o)
|
|
# WHYOBJCALLFORCE-DAG: -force_load forced load of {{.+}}lib.a(objc.o)
|
|
|
|
#--- objc.s
|
|
.section __DATA,__objc_catlist
|
|
.quad 0x1234
|
|
|
|
#--- foo.s
|
|
.globl __Z3foo
|
|
__Z3foo:
|
|
ret
|
|
|
|
#--- bar.s
|
|
.globl _bar
|
|
_bar:
|
|
callq __Z3foo
|
|
ret
|
|
|
|
#--- main.s
|
|
.globl _main
|
|
_main:
|
|
callq _bar
|
|
callq __Z3foo
|
|
ret
|