brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · e345030 Raw
35 lines · plain
1// RUN: llvm-mc -triple aarch64-- -o - %s | FileCheck %s2// RUN: llvm-mc -triple aarch64-- -filetype=obj -o - %s | llvm-dwarfdump --debug-frame - | FileCheck --check-prefix=DWARF %s3 4// This test just confirms the .cfi_val_offset directive emits a val_offset()5// rule. It's not testing anything AArch64 specific, it just needs a targets6// registers to be able to use the directive.7example:8// CHECK:      .cfi_startproc9  .cfi_startproc10  add wsp, wsp, 1611  .cfi_def_cfa wsp, -1612// CHECK: .cfi_def_cfa wsp, -1613// DWARF: DW_CFA_advance_loc: 4 to 0x414// DWARF: DW_CFA_def_cfa: WSP -1615  .cfi_val_offset wsp, 016// CHECK: .cfi_val_offset wsp, 017// DWARF: DW_CFA_val_offset: WSP 018  nop19  sub wsp, wsp, 1620  .cfi_def_cfa wsp, 021// CHECK: .cfi_def_cfa wsp, 022// DWARF: DW_CFA_advance_loc: 8 to 0xc23// DWARF: DW_CFA_def_cfa: WSP +024  .cfi_register wsp, wsp25// CHECK: .cfi_register wsp, wsp26// DWARF: DW_CFA_register: WSP WSP27  ret28  .cfi_endproc29// CHECK: .cfi_endproc30 31 32// DWARF: 0x0: CFA=WSP33// DWARF: 0x4: CFA=WSP-16: WSP=CFA34// DWARF: 0xc: CFA=WSP: WSP=WSP35