MIR Serialization: Serialize the fixed stack objects.
[oota-llvm.git] / test / CodeGen / MIR / X86 / spill-slot-fixed-stack-object-immutable.mir
1 # RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
2
3 --- |
4
5   define i32 @test(i32 %a) #0 {
6   entry:
7     %b = alloca i32
8     store i32 %a, i32* %b
9     %c = load i32, i32* %b
10     ret i32 %c
11   }
12
13   attributes #0 = { "no-frame-pointer-elim"="false" }
14
15 ...
16 ---
17 name:            test
18 frameInfo:
19   maxAlignment:    4
20 fixedStack:
21   # CHECK: [[@LINE+1]]:65: unknown key 'isImmutable'
22   - { id: 0, type: spill-slot, offset: 0, size: 4, isImmutable: true }
23 stack:
24   - { id: 0, offset: -12, size: 4, alignment: 4 }
25 body:
26   - id:          0
27     name:        entry
28     instructions:
29       - 'MOV32mr %rsp, 1, _, -4, _, %edi'
30       - '%eax = COPY %edi'
31       - 'RETQ %eax'
32 ...