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
122 lines
3.7 KiB
ArmAsm
122 lines
3.7 KiB
ArmAsm
; REQUIRES: aarch64
|
|
; RUN: split-file %s %t.dir && cd %t.dir
|
|
|
|
; RUN: llvm-mc -filetype=obj -triple=arm64ec-windows test.s -o test.obj
|
|
; RUN: llvm-mc -filetype=obj -triple=arm64ec-windows drectve.s -o drectve.obj
|
|
; RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %S/Inputs/loadconfig-arm64ec.s -o loadconfig-arm64ec.obj
|
|
|
|
; Check various forms of export directive and make sure that function export name is demangled.
|
|
|
|
; RUN: lld-link -out:out.dll test.obj loadconfig-arm64ec.obj -dll -noentry -machine:arm64ec \
|
|
; RUN: -export:unmangled_func '-export:#mangled_func' '-export:#exportas_func,EXPORTAS,exportas_func' \
|
|
; RUN: '-export:?cxx_func@@$$hYAHXZ' -export:data_sym,DATA '-export:#mangled_data_sym,DATA'
|
|
|
|
|
|
; RUN: llvm-readobj --coff-exports out.dll | FileCheck --check-prefix=EXP %s
|
|
; EXP: Export {
|
|
; EXP-NEXT: Ordinal: 1
|
|
; EXP-NEXT: Name: #mangled_data_sym
|
|
; EXP-NEXT: RVA: 0x4000
|
|
; EXP-NEXT: }
|
|
; EXP-NEXT: Export {
|
|
; EXP-NEXT: Ordinal: 2
|
|
; EXP-NEXT: Name: ?cxx_func@@YAHXZ
|
|
; EXP-NEXT: RVA: 0x2030
|
|
; EXP-NEXT: }
|
|
; EXP-NEXT: Export {
|
|
; EXP-NEXT: Ordinal: 3
|
|
; EXP-NEXT: Name: data_sym
|
|
; EXP-NEXT: RVA: 0x4004
|
|
; EXP-NEXT: }
|
|
; EXP-NEXT: Export {
|
|
; EXP-NEXT: Ordinal: 4
|
|
; EXP-NEXT: Name: exportas_func
|
|
; EXP-NEXT: RVA: 0x2020
|
|
; EXP-NEXT: }
|
|
; EXP-NEXT: Export {
|
|
; EXP-NEXT: Ordinal: 5
|
|
; EXP-NEXT: Name: mangled_func
|
|
; EXP-NEXT: RVA: 0x2010
|
|
; EXP-NEXT: }
|
|
; EXP-NEXT: Export {
|
|
; EXP-NEXT: Ordinal: 6
|
|
; EXP-NEXT: Name: unmangled_func
|
|
; EXP-NEXT: RVA: 0x2000
|
|
; EXP-NEXT: }
|
|
|
|
; RUN: llvm-nm --print-armap out.lib | FileCheck --check-prefix=IMPLIB %s
|
|
; IMPLIB: Archive EC map
|
|
; IMPLIB-NEXT: #exportas_func in out
|
|
; IMPLIB-NEXT: #mangled_func in out
|
|
; IMPLIB-NEXT: #unmangled_func in out
|
|
; IMPLIB-NEXT: ?cxx_func@@$$hYAHXZ in out
|
|
; IMPLIB-NEXT: ?cxx_func@@YAHXZ in out
|
|
; IMPLIB-NEXT: __IMPORT_DESCRIPTOR_out{{.*}} in out
|
|
; IMPLIB-NEXT: __NULL_IMPORT_DESCRIPTOR in out
|
|
; IMPLIB-NEXT: __imp_?cxx_func@@YAHXZ in out
|
|
; IMPLIB-NEXT: __imp_aux_?cxx_func@@YAHXZ in out
|
|
; IMPLIB-NEXT: __imp_aux_exportas_func in out
|
|
; IMPLIB-NEXT: __imp_aux_mangled_func in out
|
|
; IMPLIB-NEXT: __imp_aux_unmangled_func in out
|
|
; IMPLIB-NEXT: __imp_data_sym in out
|
|
; IMPLIB-NEXT: __imp_exportas_func in out
|
|
; IMPLIB-NEXT: __imp_mangled_data_sym in out
|
|
; IMPLIB-NEXT: __imp_mangled_func in out
|
|
; IMPLIB-NEXT: __imp_unmangled_func in out
|
|
; IMPLIB-NEXT: exportas_func in out
|
|
; IMPLIB-NEXT: mangled_func in out
|
|
; IMPLIB-NEXT: unmangled_func in out
|
|
; IMPLIB-NEXT: out{{.*}}_NULL_THUNK_DATA in out
|
|
|
|
|
|
; Check that using .drectve section has the same effect.
|
|
|
|
; RUN: lld-link -out:out2.dll test.obj loadconfig-arm64ec.obj -dll -noentry -machine:arm64ec drectve.obj
|
|
; RUN: llvm-readobj --coff-exports out2.dll | FileCheck --check-prefix=EXP %s
|
|
; RUN: llvm-nm --print-armap out2.lib | FileCheck --check-prefix=IMPLIB %s
|
|
|
|
#--- test.s
|
|
.text
|
|
.globl unmangled_func
|
|
.p2align 2, 0x0
|
|
unmangled_func:
|
|
mov w0, #1
|
|
ret
|
|
|
|
.globl "#mangled_func"
|
|
.p2align 2, 0x0
|
|
"#mangled_func":
|
|
mov w0, #2
|
|
ret
|
|
|
|
.globl "#exportas_func"
|
|
.p2align 2, 0x0
|
|
"#exportas_func":
|
|
mov w0, #3
|
|
ret
|
|
|
|
.globl "?cxx_func@@$$hYAHXZ"
|
|
.p2align 2, 0x0
|
|
"?cxx_func@@$$hYAHXZ":
|
|
mov w0, #4
|
|
ret
|
|
|
|
.data
|
|
.globl "#mangled_data_sym"
|
|
.p2align 2, 0x0
|
|
"#mangled_data_sym":
|
|
.word 0x01010101
|
|
.globl data_sym
|
|
.p2align 2, 0x0
|
|
data_sym:
|
|
.word 0x01010101
|
|
|
|
#--- drectve.s
|
|
.section .drectve, "yn"
|
|
.ascii " -export:unmangled_func"
|
|
.ascii " -export:#mangled_func"
|
|
.ascii " -export:#exportas_func,EXPORTAS,exportas_func"
|
|
.ascii " -export:?cxx_func@@$$hYAHXZ"
|
|
.ascii " -export:data_sym,DATA"
|
|
.ascii " -export:#mangled_data_sym,DATA"
|