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
55 lines
1.7 KiB
ArmAsm
55 lines
1.7 KiB
ArmAsm
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
|
|
# RUN: ld.lld -pie %t.o --icf=all --print-icf-sections -o /dev/null | \
|
|
# RUN: FileCheck --check-prefixes=EXE %s
|
|
|
|
# RUN: ld.lld -shared %t.o --icf=all --print-icf-sections -o /dev/null | \
|
|
# RUN: FileCheck --check-prefix=DSO %s
|
|
|
|
## Definitions are non-preemptible in an executable.
|
|
# EXE-NOT: {{.}}
|
|
# EXE: selected section {{.*}}:(.text.g1)
|
|
# EXE-NEXT: removing identical section {{.*}}:(.text.g2)
|
|
# EXE-NEXT: removing identical section {{.*}}:(.text.g3)
|
|
# EXE-NEXT: selected section {{.*}}:(.text.f1)
|
|
# EXE-NEXT: removing identical section {{.*}}:(.text.f2)
|
|
# EXE-NEXT: selected section {{.*}}:(.text.h1)
|
|
# EXE-NEXT: removing identical section {{.*}}:(.text.h2)
|
|
# EXE-NEXT: removing identical section {{.*}}:(.text.h3)
|
|
# EXE-NOT: {{.}}
|
|
|
|
## Definitions are preemptible in a DSO. Only leaf functions can be folded.
|
|
# DSO-NOT: {{.}}
|
|
# DSO: selected section {{.*}}:(.text.g1)
|
|
# DSO-NEXT: removing identical section {{.*}}:(.text.g3)
|
|
# DSO-NEXT: selected section {{.*}}:(.text.f1)
|
|
# DSO-NEXT: removing identical section {{.*}}:(.text.f2)
|
|
# DSO-NOT: {{.}}
|
|
|
|
.globl _start, f1, f2, g1, g2, g3
|
|
_start:
|
|
|
|
.section .text.f1
|
|
f1: ret
|
|
.section .text.f2
|
|
f2: ret
|
|
|
|
## In -shared mode, .text.g1 and .text.g2 cannot be folded because f1 and f2 are
|
|
## preemptible and may refer to different functions at runtime.
|
|
.section .text.g1
|
|
g1: jmp f1@plt
|
|
.section .text.g2
|
|
g2: jmp f2@plt
|
|
.section .text.g3
|
|
g3: jmp f1@plt
|
|
|
|
## In -shared mode, the sections below cannot be folded because g1, g2 and g3
|
|
## are preemptible and may refer to different functions at runtime.
|
|
.section .text.h1
|
|
jmp g1@plt
|
|
.section .text.h2
|
|
jmp g2@plt
|
|
.section .text.h3
|
|
jmp g3@plt
|