Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / arm64-compact-unwind-fallback.s
blob317b67130cdcdb920e05dbfb3e9314a7bcdc9a08
1 // RUN: llvm-mc -triple=arm64-apple-ios -filetype=obj %s -o %t
2 // RUN: llvm-objdump --macho --unwind-info --dwarf=frames %t | FileCheck %s
4 // Check that we fallback on DWARF instead of asserting.
6 // CHECK: Contents of __compact_unwind section:
7 // CHECK: compact encoding: 0x03000000
8 // CHECK: compact encoding: 0x03000000
9 // CHECK: compact encoding: 0x03000000
10 // CHECK: compact encoding: 0x03000000
12 // CHECK: .eh_frame contents:
13 // CHECK: DW_CFA_def_cfa: reg1 +32
15 // DW_CFA_def_cfa_offset: +32
16 // DW_CFA_def_cfa_offset: +64
18 _cfi_dwarf0:
19 .cfi_startproc
20 .cfi_def_cfa x1, 32;
21 .cfi_endproc
23 _cfi_dwarf1:
24 .cfi_startproc
25 .cfi_def_cfa_offset 32
26 .cfi_def_cfa_offset 64
27 .cfi_endproc
29 _cfi_dwarf2:
30 .cfi_startproc
31 .cfi_def_cfa w29, 16
32 .cfi_def_cfa w29, 16
33 .cfi_endproc
35 _cfi_dwarf3:
36 .cfi_startproc
37 .cfi_def_cfa w29, 16
38 .cfi_offset w16, -16
39 .cfi_offset w17, -8
40 .cfi_endproc