76 lines · plain
1# REQUIRES: asserts2# RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj -o %t %s3# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec -phony-externals \4# RUN: %t 2>&1 \5# RUN: | FileCheck %s6# RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj -o %t %s7# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec -phony-externals \8# RUN: %t 2>&1 \9# RUN: | FileCheck %s10#11# Check that splitting of eh-frame sections works.12#13# CHECK: DWARFRecordSectionSplitter: Processing .eh_frame...14# CHECK: Processing block at15# CHECK: Processing CFI record at16# CHECK: Processing CFI record at17# CHECK: EHFrameEdgeFixer: Processing .eh_frame in "{{.*}}"...18# CHECK: Processing block at19# CHECK: Record is CIE20# CHECK: Processing block at21# CHECK: Record is FDE22# CHECK: Adding edge at {{.*}} to CIE at: {{.*}}23# CHECK: Processing PC-begin at24# CHECK: Existing edge at {{.*}} to PC begin at {{.*}}25# CHECK: Adding keep-alive edge from target at {{.*}} to FDE at {{.*}}26 27 .text28 .abiversion 229 .file "exception.cc"30 .globl main31 .p2align 432 .type main,@function33main:34.Lfunc_begin0:35 .cfi_startproc36.Lfunc_gep0:37 addis 2, 12, .TOC.-.Lfunc_gep0@ha38 addi 2, 2, .TOC.-.Lfunc_gep0@l39.Lfunc_lep0:40 .localentry main, .Lfunc_lep0-.Lfunc_gep041 mflr 042 stdu 1, -32(1)43 std 0, 48(1)44 .cfi_def_cfa_offset 3245 .cfi_offset lr, 1646 li 3, 847 bl __cxa_allocate_exception48 nop49 addis 4, 2, .LC0@toc@ha50 addis 5, 2, .LC1@toc@ha51 addis 6, 2, .LC2@toc@ha52 ld 4, .LC0@toc@l(4)53 addi 4, 4, 1654 std 4, 0(3)55 ld 4, .LC1@toc@l(5)56 ld 5, .LC2@toc@l(6)57 bl __cxa_throw58 nop59 .long 060 .quad 061.Lfunc_end0:62 .size main, .Lfunc_end0-.Lfunc_begin063 .cfi_endproc64 65 .ident "clang version 17.0.0"66 .section ".note.GNU-stack","",@progbits67 .addrsig68 .addrsig_sym _ZTISt9exception69 .section .toc,"aw",@progbits70.LC0:71 .tc _ZTVSt9exception[TC],_ZTVSt9exception72.LC1:73 .tc _ZTISt9exception[TC],_ZTISt9exception74.LC2:75 .tc _ZNSt9exceptionD1Ev[TC],_ZNSt9exceptionD1Ev76