74 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=arm64-apple-macos11.0 %s | llvm-objdump --unwind-info - | FileCheck %s2 3# Check that we emit the right encoding for the no-personality case.4 5# CHECK: Contents of __compact_unwind section:6# CHECK: Entry at offset {{.+}}7# CHECK: start: {{.+}} ltmp08# CHECK: length: {{.+}}9# CHECK: compact encoding: 0x0200100010# CHECK: Entry at offset {{.+}}11# CHECK: start: {{.+}} __Z3foov12# CHECK: length: {{.+}}13# CHECK: compact encoding: 0x0400000014# CHECK: Entry at offset {{.+}}15# CHECK: start: {{.+}} _main16# CHECK: length: {{.+}}17# CHECK: compact encoding: 0x0400000018 19 20 .section __TEXT,__text,regular,pure_instructions21 .build_version macos, 11, 022 .globl __Z3barPi 23 .p2align 224__Z3barPi: 25 .cfi_startproc26 sub sp, sp, #1627 .cfi_def_cfa_offset 1628 str x0, [sp, #8]29 add sp, sp, #1630 ret31 .cfi_endproc32 33 .globl __Z3foov 34 .p2align 235__Z3foov: 36 .cfi_startproc37 38 sub sp, sp, #3239 .cfi_def_cfa_offset 3240 stp x29, x30, [sp, #16] 41 add x29, sp, #1642 .cfi_def_cfa w29, 1643 .cfi_offset w30, -844 .cfi_offset w29, -1645 sub x0, x29, #446 bl __Z3barPi47 ldp x29, x30, [sp, #16] 48 add sp, sp, #3249 ret50 .cfi_endproc51 52 .globl _main 53 .p2align 254_main: 55 .cfi_startproc56 sub sp, sp, #3257 .cfi_def_cfa_offset 3258 stp x29, x30, [sp, #16] 59 add x29, sp, #1660 .cfi_def_cfa w29, 1661 .cfi_offset w30, -862 .cfi_offset w29, -1663 mov w8, #0 64 str w8, [sp, #8] 65 stur wzr, [x29, #-4]66 bl __Z3foov67 ldr w0, [sp, #8] 68 ldp x29, x30, [sp, #16] 69 add sp, sp, #3270 ret71 .cfi_endproc72 73.subsections_via_symbols74