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
72 lines
2.2 KiB
ArmAsm
72 lines
2.2 KiB
ArmAsm
#===------------------------------------------------------------------------===#
|
|
#
|
|
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
# See https://llvm.org/LICENSE.txt for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
#
|
|
#===------------------------------------------------------------------------===#
|
|
|
|
# REQUIRES: target={{x86_64-.+}}
|
|
# UNSUPPORTED: target={{.*-windows.*}}
|
|
# UNSUPPORTED: target={{.*-apple.*}}
|
|
|
|
# Inline assembly isn't supported by Memory Sanitizer
|
|
# UNSUPPORTED: msan
|
|
|
|
# RUN: %{build} -no-pie
|
|
# RUN: %{run}
|
|
|
|
# The following assembly is a translation of this code:
|
|
#
|
|
# _Unwind_Reason_Code callback(int, _Unwind_Action, long unsigned int,
|
|
# _Unwind_Exception*, _Unwind_Context*, void*) {
|
|
# return _Unwind_Reason_Code(0);
|
|
# }
|
|
#
|
|
# int main() {
|
|
# asm(".cfi_remember_state\n\t");
|
|
# _Unwind_Exception exc;
|
|
# _Unwind_ForcedUnwind(&exc, callback, 0);
|
|
# asm(".cfi_restore_state\n\t");
|
|
# }
|
|
#
|
|
# When unwinding, the CFI parser will stop parsing opcodes after the current PC,
|
|
# so in this case the DW_CFA_restore_state opcode will never be processed and,
|
|
# if the library doesn't clean up properly, the store allocated by
|
|
# DW_CFA_remember_state will be leaked.
|
|
#
|
|
# This test will fail when linked with an asan-enabled libunwind if the
|
|
# remembered state is leaked.
|
|
|
|
SIZEOF_UNWIND_EXCEPTION = 32
|
|
|
|
.att_syntax
|
|
.text
|
|
callback:
|
|
xorl %eax, %eax
|
|
retq
|
|
|
|
.globl main # -- Begin function main
|
|
.p2align 4, 0x90
|
|
.type main,@function
|
|
main: # @main
|
|
.cfi_startproc
|
|
subq $8, %rsp # Adjust stack alignment
|
|
subq $SIZEOF_UNWIND_EXCEPTION, %rsp
|
|
.cfi_def_cfa_offset 48
|
|
.cfi_remember_state
|
|
movq %rsp, %rdi
|
|
movabsq $callback, %rsi
|
|
xorl %edx, %edx
|
|
callq _Unwind_ForcedUnwind
|
|
.cfi_restore_state
|
|
xorl %eax, %eax
|
|
addq $SIZEOF_UNWIND_EXCEPTION, %rsp
|
|
addq $8, %rsp # Undo stack alignment adjustment
|
|
.cfi_def_cfa_offset 8
|
|
retq
|
|
.Lfunc_end1:
|
|
.size main, .Lfunc_end1-main
|
|
.cfi_endproc
|
|
# -- End function
|