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
67 lines
1.8 KiB
ArmAsm
67 lines
1.8 KiB
ArmAsm
# REQUIRES: x86
|
|
# RUN: rm -rf %t; split-file %s %t
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/2.s -o %t/2.o
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/3.s -o %t/3.o
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/4.s -o %t/4.o
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/main.s -o %t/main.o
|
|
|
|
# RUN: llvm-ar rcs %t/test.a %t/2.o %t/3.o %t/4.o
|
|
# RUN: %lld %t/main.o %t/test.a -o %t/test.out
|
|
|
|
## TODO: Run llvm-nm -p to validate symbol order
|
|
# RUN: llvm-nm %t/test.out | FileCheck %s
|
|
# CHECK: T _bar
|
|
# CHECK: T _boo
|
|
# CHECK: T _main
|
|
|
|
## Linking with the archive first in the command line shouldn't change anything
|
|
# RUN: %lld %t/test.a %t/main.o -o %t/test.out
|
|
# RUN: llvm-nm %t/test.out | FileCheck %s --check-prefix ARCHIVE-FIRST
|
|
# ARCHIVE-FIRST: T _bar
|
|
# ARCHIVE-FIRST: T _boo
|
|
# ARCHIVE-FIRST: T _main
|
|
|
|
# RUN: llvm-nm %t/test.out | FileCheck %s --check-prefix VISIBLE
|
|
# VISIBLE-NOT: T _undefined
|
|
# VISIBLE-NOT: T _unused
|
|
|
|
# RUN: %lld %t/test.a %t/main.o -o %t/all-load -noall_load -all_load
|
|
# RUN: llvm-nm %t/all-load | FileCheck %s --check-prefix ALL-LOAD
|
|
# ALL-LOAD: T _bar
|
|
# ALL-LOAD: T _boo
|
|
# ALL-LOAD: T _main
|
|
# ALL-LOAD: T _unused
|
|
|
|
# RUN: %lld %t/test.a %t/main.o -o %t/no-all-load -all_load -noall_load
|
|
# RUN: llvm-nm %t/no-all-load | FileCheck %s --check-prefix NO-ALL-LOAD
|
|
# RUN: %lld %t/test.a %t/main.o -o %t/no-all-load-only -noall_load
|
|
# RUN: llvm-nm %t/no-all-load-only | FileCheck %s --check-prefix NO-ALL-LOAD
|
|
# NO-ALL-LOAD-NOT: T _unused
|
|
|
|
## Multiple archives defining the same symbols aren't an issue, due to lazy
|
|
## loading
|
|
# RUN: cp %t/test.a %t/test2.a
|
|
# RUN: %lld %t/test.a %t/test2.a %t/main.o -o /dev/null
|
|
|
|
#--- 2.s
|
|
.globl _boo
|
|
_boo:
|
|
ret
|
|
|
|
#--- 3.s
|
|
.globl _bar
|
|
_bar:
|
|
ret
|
|
|
|
#--- 4.s
|
|
.globl _undefined, _unused
|
|
_unused:
|
|
ret
|
|
|
|
#--- main.s
|
|
.globl _main
|
|
_main:
|
|
callq _boo
|
|
callq _bar
|
|
ret
|