68 lines · plain
1# REQUIRES: asserts2# RUN: llvm-mc -triple=loongarch64-linux-gnu -filetype=obj -o %t %s3# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \4# RUN: -phony-externals %t 2>&1 | FileCheck %s5 6## Check that splitting of eh-frame sections works.7 8# CHECK: DWARFRecordSectionSplitter: Processing .eh_frame...9# CHECK: Processing block at10# CHECK: Processing CFI record at11# CHECK: Processing CFI record at12# CHECK: EHFrameEdgeFixer: Processing .eh_frame in "{{.*}}"...13# CHECK: Processing block at14# CHECK: Record is CIE15# CHECK: Processing block at16# CHECK: Record is FDE17# CHECK: Adding edge at {{.*}} to CIE at: {{.*}}18# CHECK: Existing edge at {{.*}} to PC begin at {{.*}}19# CHECK: Adding keep-alive edge from target at {{.*}} to FDE at {{.*}}20# CHECK: Processing block at21# CHECK: Record is FDE22# CHECK: Adding edge at {{.*}} to CIE at: {{.*}}23# CHECK: Existing edge at {{.*}} to PC begin at {{.*}}24# CHECK: Adding keep-alive edge from target at {{.*}} to FDE at {{.*}}25 26 .text27 .globl main28 .p2align 229 .type main,@function30main:31 .cfi_startproc32 addi.d $sp, $sp, -1633 .cfi_def_cfa_offset 1634 st.d $ra, $sp, 835 .cfi_offset 1, -836 ori $a0, $zero, 437 bl %plt(__cxa_allocate_exception)38 ori $a1, $zero, 539 st.w $a1, $a0, 040 pcalau12i $a1, %got_pc_hi20(_ZTIi)41 ld.d $a1, $a1, %got_pc_lo12(_ZTIi)42 move $a2, $zero43 bl %plt(__cxa_throw)44.main_end:45 .size main, .main_end-main46 .cfi_endproc47 48 .globl dup49 .p2align 250 .type main,@function51dup:52 .cfi_startproc53 addi.d $sp, $sp, -1654 .cfi_def_cfa_offset 1655 st.d $ra, $sp, 856 .cfi_offset 1, -857 ori $a0, $zero, 458 bl %plt(__cxa_allocate_exception)59 ori $a1, $zero, 560 st.w $a1, $a0, 061 pcalau12i $a1, %got_pc_hi20(_ZTIi)62 ld.d $a1, $a1, %got_pc_lo12(_ZTIi)63 move $a2, $zero64 bl %plt(__cxa_throw)65.dup_end:66 .size main, .dup_end-dup67 .cfi_endproc68