xref: /aosp_15_r20/external/llvm/test/MC/ARM/dwarf-cfi-initial-state.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o - \
2*9880d681SAndroid Build Coastguard Worker# RUN:     | llvm-dwarfdump - | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker_proc:
5*9880d681SAndroid Build Coastguard Worker.cfi_sections .debug_frame
6*9880d681SAndroid Build Coastguard Worker.cfi_startproc
7*9880d681SAndroid Build Coastguard Workerbx lr
8*9880d681SAndroid Build Coastguard Worker.cfi_endproc
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker# CHECK: .debug_frame contents:
11*9880d681SAndroid Build Coastguard Worker# CHECK: CIE
12*9880d681SAndroid Build Coastguard Worker# CHECK-NOT: DW_CFA
13*9880d681SAndroid Build Coastguard Worker# When llvm-dwarfdump prints the full info for the DW_CFA_def_cfa
14*9880d681SAndroid Build Coastguard Worker# field, we can check that here too.
15*9880d681SAndroid Build Coastguard Worker# CHECK: DW_CFA_def_cfa:
16*9880d681SAndroid Build Coastguard Worker# The following 2 DW_CFA_nop instructions are "padding"
17*9880d681SAndroid Build Coastguard Worker# CHECK: DW_CFA_nop:
18*9880d681SAndroid Build Coastguard Worker# CHECK: DW_CFA_nop:
19*9880d681SAndroid Build Coastguard Worker# CHECK-NOT: DW_CFA
20*9880d681SAndroid Build Coastguard Worker# CHECK: FDE
21