DI: Require subprogram definitions to be distinct
[oota-llvm.git] / test / CodeGen / MIR / X86 / cfi-def-cfa-offset.mir
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_offset operands
3 # correctly.
4
5 --- |
6
7   define void @test() {
8   entry:
9     %tmp = alloca [4168 x i8], align 4
10     ret void
11   }
12
13 ...
14 ---
15 name:            test
16 tracksRegLiveness: true
17 frameInfo:
18   stackSize:       4040
19 stack:
20   - { id: 0, name: tmp, offset: -4176, size: 4168, alignment: 4 }
21 body: |
22   bb.0.entry:
23     %rsp = SUB64ri32 %rsp, 4040, implicit-def dead %eflags
24     ; CHECK: CFI_INSTRUCTION .cfi_def_cfa_offset 4048
25     CFI_INSTRUCTION .cfi_def_cfa_offset 4048
26     %rsp = ADD64ri32 %rsp, 4040, implicit-def dead %eflags
27     RETQ
28 ...
29