Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / MachO / AArch64 / darwin-ARM64-no-personality.s
blobda9077e06e8a3eaf024b558f713e2b54883994f3
1 # RUN: llvm-mc -filetype=obj -triple=arm64-apple-macos11.0 %s | llvm-objdump --unwind-info - | FileCheck %s
3 # Check that we emit the right encoding for the no-personality case.
5 # CHECK: Contents of __compact_unwind section:
6 # CHECK: Entry at offset {{.+}}
7 # CHECK: start: {{.+}} ltmp0
8 # CHECK: length: {{.+}}
9 # CHECK: compact encoding: 0x02001000
10 # CHECK: Entry at offset {{.+}}
11 # CHECK: start: {{.+}} __Z3foov
12 # CHECK: length: {{.+}}
13 # CHECK: compact encoding: 0x04000000
14 # CHECK: Entry at offset {{.+}}
15 # CHECK: start: {{.+}} _main
16 # CHECK: length: {{.+}}
17 # CHECK: compact encoding: 0x04000000
20 .section __TEXT,__text,regular,pure_instructions
21 .build_version macos, 11, 0
22 .globl __Z3barPi
23 .p2align 2
24 __Z3barPi:
25 .cfi_startproc
26 sub sp, sp, #16
27 .cfi_def_cfa_offset 16
28 str x0, [sp, #8]
29 add sp, sp, #16
30 ret
31 .cfi_endproc
33 .globl __Z3foov
34 .p2align 2
35 __Z3foov:
36 .cfi_startproc
38 sub sp, sp, #32
39 .cfi_def_cfa_offset 32
40 stp x29, x30, [sp, #16]
41 add x29, sp, #16
42 .cfi_def_cfa w29, 16
43 .cfi_offset w30, -8
44 .cfi_offset w29, -16
45 sub x0, x29, #4
46 bl __Z3barPi
47 ldp x29, x30, [sp, #16]
48 add sp, sp, #32
49 ret
50 .cfi_endproc
52 .globl _main
53 .p2align 2
54 _main:
55 .cfi_startproc
56 sub sp, sp, #32
57 .cfi_def_cfa_offset 32
58 stp x29, x30, [sp, #16]
59 add x29, sp, #16
60 .cfi_def_cfa w29, 16
61 .cfi_offset w30, -8
62 .cfi_offset w29, -16
63 mov w8, #0
64 str w8, [sp, #8]
65 stur wzr, [x29, #-4]
66 bl __Z3foov
67 ldr w0, [sp, #8]
68 ldp x29, x30, [sp, #16]
69 add sp, sp, #32
70 ret
71 .cfi_endproc
73 .subsections_via_symbols