69 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin10.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: {{.+}} __Z3barPi8# CHECK: length: {{.+}}9# CHECK: compact encoding: 0x0100000010# CHECK: Entry at offset {{.+}}11# CHECK: start: {{.+}} __Z3foov12# CHECK: length: {{.+}}13# CHECK: compact encoding: 0x0100000014# CHECK: Entry at offset {{.+}}15# CHECK: start: {{.+}} _main16# CHECK: length: 0x1c17 18 .section __TEXT,__text,regular,pure_instructions19 .globl __Z3barPi 20 .p2align 4, 0x9021__Z3barPi: 22 .cfi_startproc23 pushq %rbp24 .cfi_def_cfa_offset 1625 .cfi_offset %rbp, -1626 movq %rsp, %rbp27 .cfi_def_cfa_register %rbp28 movq %rdi, -8(%rbp)29 popq %rbp30 retq31 .cfi_endproc32 33 .globl __Z3foov 34 .p2align 4, 0x9035__Z3foov: 36 .cfi_startproc37 pushq %rbp38 .cfi_def_cfa_offset 1639 .cfi_offset %rbp, -1640 movq %rsp, %rbp41 .cfi_def_cfa_register %rbp42 subq $16, %rsp43 leaq -4(%rbp), %rdi44 callq __Z3barPi45 addq $16, %rsp46 popq %rbp47 retq48 .cfi_endproc49 50 .globl _main 51 .p2align 4, 0x9052_main: 53 .cfi_startproc54 pushq %rbp55 .cfi_def_cfa_offset 1656 .cfi_offset %rbp, -1657 movq %rsp, %rbp58 .cfi_def_cfa_register %rbp59 subq $16, %rsp60 movl $0, -4(%rbp)61 callq __Z3foov62 xorl %eax, %eax63 addq $16, %rsp64 popq %rbp65 retq66 .cfi_endproc67 68.subsections_via_symbols69