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
63 lines
2.3 KiB
ArmAsm
63 lines
2.3 KiB
ArmAsm
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
|
|
# RUN: wasm-ld -shared -o %t.wasm %t.o
|
|
# RUN: obj2yaml %t.wasm | FileCheck %s
|
|
# RUN: llvm-objdump -d %t.wasm | FileCheck %s -check-prefix=ASM
|
|
|
|
# Run the same test but include a definition of ret32 in a library file.
|
|
# This verifies that LazySymbols (those found in library archives) are correctly
|
|
# demoted to undefined symbols in the final link when they are only weakly
|
|
# referenced.
|
|
# RUN: mkdir -p %t.dir
|
|
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.ret32.o %p/Inputs/ret32.s
|
|
# RUN: rm -f %t.dir/libret32.a
|
|
# RUN: llvm-ar cru %t.dir/libret32.a %t.ret32.o
|
|
# RUN: wasm-ld -shared -o %t.ret32.wasm %t.o %t.dir/libret32.a
|
|
# RUN: obj2yaml %t.wasm | FileCheck %s
|
|
# RUN: llvm-objdump -d %t.wasm | FileCheck %s -check-prefix=ASM
|
|
|
|
# Verify the weak undefined symbols are marked as such in the
|
|
# dylink section.
|
|
|
|
.weak weak_func
|
|
.functype weak_func () -> (i32)
|
|
.weak ret32
|
|
.functype ret32 (f32) -> (i32)
|
|
|
|
.globl call_weak
|
|
call_weak:
|
|
# ASM: <call_weak>:
|
|
.functype call_weak () -> (i32)
|
|
call weak_func
|
|
# ASM: 10 80 80 80 80 00 call 0
|
|
end_function
|
|
# ASM-NEXT: 0b end
|
|
|
|
# This function is defined in library archive, but since our reference to it
|
|
# is weak we don't expect this definition to be used. Instead we expect it to
|
|
# act like an undefined reference and result in an imported function.
|
|
.globl call_weak_libfunc
|
|
call_weak_libfunc:
|
|
# ASM: <call_weak_libfunc>:
|
|
.functype call_weak_libfunc () -> (i32)
|
|
f32.const 1.0
|
|
call ret32
|
|
# ASM: 10 81 80 80 80 00 call 1
|
|
end_function
|
|
# ASM-NEXT: 0b end
|
|
|
|
# CHECK: Sections:
|
|
# CHECK-NEXT: - Type: CUSTOM
|
|
# CHECK-NEXT: Name: dylink.0
|
|
# CHECK-NEXT: MemorySize: 0
|
|
# CHECK-NEXT: MemoryAlignment: 0
|
|
# CHECK-NEXT: TableSize: 0
|
|
# CHECK-NEXT: TableAlignment: 0
|
|
# CHECK-NEXT: Needed: []
|
|
# CHECK-NEXT: ImportInfo:
|
|
# CHECK-NEXT: - Module: env
|
|
# CHECK-NEXT: Field: weak_func
|
|
# CHECK-NEXT: Flags: [ BINDING_WEAK, UNDEFINED ]
|
|
# CHECK-NEXT: - Module: env
|
|
# CHECK-NEXT: Field: ret32
|
|
# CHECK-NEXT: Flags: [ BINDING_WEAK, UNDEFINED ]
|