• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
2# This test ensures that the MIR parser parses the .cfi_def_cfa_register
3# operands correctly.
4
5--- |
6
7  define void @func() #0 {
8  entry:
9    unreachable
10  }
11
12  attributes #0 = { "no-frame-pointer-elim"="true" }
13
14...
15---
16name:            func
17tracksRegLiveness: true
18frameInfo:
19  stackSize:     8
20fixedStack:
21  - { id: 0, type: spill-slot, offset: -16, size: 8, alignment: 16 }
22body: |
23  bb.0.entry:
24    liveins: %rbp
25
26    PUSH64r killed %rbp, implicit-def %rsp, implicit %rsp
27    CFI_INSTRUCTION .cfi_def_cfa_offset 16
28    CFI_INSTRUCTION .cfi_offset %rbp, -16
29    %rbp = MOV64rr %rsp
30    ; CHECK: CFI_INSTRUCTION .cfi_def_cfa_register %rbp
31    CFI_INSTRUCTION .cfi_def_cfa_register %rbp
32...
33