1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/MC/ELF/cfi-restore-extended.s
Greg Clayton b5450e4ab7 Show register names in DWARF unwind info.
Register context information was already being passed into the DWARFDebugFrame code that dumps unwind information but it wasn't being used. This change adds the ability to dump registers names of a valid MC register context was passed in and if it knows about the register. Updated the tests to use the newly returned register names.

Differential Revision: https://reviews.llvm.org/D88767
2020-10-05 15:34:33 -07:00

17 lines
468 B
ArmAsm

// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-dwarfdump -debug-frame - | FileCheck %s
// Check that register numbers greater than 63 can be used in .cfi_restore directives
f:
.cfi_startproc
nop
// CHECK: DW_CFA_advance_loc: 1
.cfi_restore %rbp
// CHECK-NEXT: DW_CFA_restore: RBP
nop
// CHECK-NEXT: DW_CFA_advance_loc: 1
.cfi_restore 89
// CHECK-NEXT: DW_CFA_restore_extended: reg89
// CHECK-NEXT: DW_CFA_nop:
nop
.cfi_endproc