1 # RUN: llc -o - %s -mtriple=x86_64-- -verify-cfiinstrs \
2 # RUN: -run-pass=cfi-instr-inserter 2>&1 | FileCheck %s
3 # Test that CFI inserter inserts .cfi_restore properly for
4 # callee saved registers.
12 # CHECK: CFI_INSTRUCTION restore $rbx
13 # CHECK-NEXT: CFI_INSTRUCTION restore $rbp
17 TEST8rr renamable $dil, renamable $dil, implicit-def $eflags, implicit killed $edi
18 JCC_1 %bb.2, 5, implicit killed $eflags
24 CFI_INSTRUCTION def_cfa_offset 16
25 CFI_INSTRUCTION offset $rbp, -16
26 CFI_INSTRUCTION def_cfa_register $rbp
27 CFI_INSTRUCTION offset $rbx, -24
28 CFI_INSTRUCTION def_cfa $rsp, 8