Files
TheRock/compiler/amd-llvm/lld/test/COFF/gc-dwarf-eh-arm64x.s
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

48 lines
1.6 KiB
ArmAsm

# REQUIRES: aarch64
# RUN: llvm-mc -triple=aarch64-windows-gnu %s -filetype=obj -o %t-arm64.obj
# RUN: llvm-mc -triple=arm64ec-windows-gnu %s -filetype=obj -o %t-arm64ec.obj
# RUN: lld-link -machine:arm64x -lldmingw -out:%t.exe -opt:ref -entry:main %t-arm64.obj %t-arm64ec.obj -verbose 2>&1 | FileCheck %s
# CHECK: Discarded unused
# Check that __gxx_personality_v0 is not discarded and is present in the output.
# RUN: llvm-objdump -d %t.exe | FileCheck --check-prefix=DISASM %s
# DISASM: 0000000140001000 <.text>:
# DISASM-NEXT: 140001000: 52800000 mov w0, #0x0 // =0
# DISASM-NEXT: 140001004: d65f03c0 ret
# DISASM-NEXT: 140001008: 52800020 mov w0, #0x1 // =1
# DISASM-NEXT: 14000100c: d65f03c0 ret
# DISASM-NEXT: ...
# DISASM-NEXT: 140002000: 52800000 mov w0, #0x0 // =0
# DISASM-NEXT: 140002004: d65f03c0 ret
# DISASM-NEXT: 140002008: 52800020 mov w0, #0x1 // =1
# DISASM-NEXT: 14000200c: d65f03c0 ret
.def main; .scl 2; .type 32; .endef
.section .text,"xr",one_only,main
.globl main
main:
.cfi_startproc
.cfi_personality 0, __gxx_personality_v0
mov w0, #0
ret
.cfi_endproc
.def __gxx_personality_v0; .scl 2; .type 32; .endef
.section .text,"xr",one_only,__gxx_personality_v0
.globl __gxx_personality_v0
__gxx_personality_v0:
mov w0, #1
ret
.def unused; .scl 2; .type 32; .endef
.section .text,"xr",one_only,unused
.globl unused
unused:
.cfi_startproc
.cfi_personality 0, __gxx_personality_v0
mov w0, #2
ret
.cfi_endproc