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
1.9 KiB
ArmAsm
63 lines
1.9 KiB
ArmAsm
# RUN: split-file %s %t
|
|
# RUN: llvm-mc -filetype=obj --triple=wasm32-unknown-unknown -o %t/main.o %t/main.s
|
|
# RUN: llvm-mc -filetype=obj --triple=wasm32-unknown-unknown -o %t/liba_x.o %t/liba_x.s
|
|
# RUN: llvm-mc -filetype=obj --triple=wasm32-unknown-unknown -o %t/liba_y.o %t/liba_y.s
|
|
# RUN: rm -f %t/liba.a
|
|
# RUN: llvm-ar rcs %t/liba.a %t/liba_x.o %t/liba_y.o
|
|
# RUN: wasm-ld %t/main.o %t/liba.a --gc-sections -o %t/main.wasm --print-gc-sections | FileCheck %s --check-prefix=GC
|
|
# RUN: obj2yaml %t/main.wasm | FileCheck %s
|
|
|
|
# --gc-sections should remove non-retained and unused "weathers" section from live object liba_x.o
|
|
# GC: removing unused section {{.*}}/liba.a(liba_x.o):(weathers)
|
|
# Should not remove retained "greetings" sections from live objects main.o and liba_x.o
|
|
# GC-NOT: removing unused section %t/main.o:(greetings)
|
|
# GC-NOT: removing unused section %t/liba_x.o:(greetings)
|
|
|
|
# Note: All symbols are private so that they don't join the symbol table.
|
|
|
|
#--- main.s
|
|
.functype grab_liba () -> ()
|
|
.globl _start
|
|
_start:
|
|
.functype _start () -> ()
|
|
call grab_liba
|
|
end_function
|
|
|
|
.section greetings,"R",@
|
|
.asciz "hello"
|
|
.section weathers,"R",@
|
|
.asciz "cloudy"
|
|
|
|
#--- liba_x.s
|
|
.globl grab_liba
|
|
grab_liba:
|
|
.functype grab_liba () -> ()
|
|
end_function
|
|
|
|
.section greetings,"R",@
|
|
.asciz "world"
|
|
.section weathers,"",@
|
|
.asciz "rainy"
|
|
|
|
#--- liba_y.s
|
|
.section greetings,"R",@
|
|
.asciz "bye"
|
|
|
|
|
|
# "greetings" section
|
|
# CHECK: - Type: DATA
|
|
# CHECK: Segments:
|
|
# CHECK: - SectionOffset: 8
|
|
# CHECK: InitFlags: 0
|
|
# CHECK: Offset:
|
|
# CHECK: Opcode: I32_CONST
|
|
# CHECK: Value: 65536
|
|
# CHECK: Content: 68656C6C6F00776F726C6400
|
|
# "weahters" section.
|
|
# CHECK: - SectionOffset: 27
|
|
# CHECK: InitFlags: 0
|
|
# CHECK: Offset:
|
|
# CHECK: Opcode: I32_CONST
|
|
# CHECK: Value: 65548
|
|
# CHECK: Content: 636C6F75647900
|