MIR Serialization: Serialize the frame index machine operands.
[oota-llvm.git] / test / CodeGen / MIR / X86 / undefined-stack-object.mir
1 # RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s
2 --- |
3
4   define i32 @test(i32 %a) {
5   entry:
6     %b = alloca i32
7     store i32 %a, i32* %b
8     %c = load i32, i32* %b
9     ret i32 %c
10   }
11
12 ...
13 ---
14 name:            test
15 isSSA:           true
16 tracksRegLiveness: true
17 registers:
18   - { id: 0, class: gr32 }
19 frameInfo:
20   maxAlignment:  4
21 stack:
22   - { id: 0, name: b, size: 4, alignment: 4 }
23 body:
24   - id:          0
25     name:        entry
26     instructions:
27       - '%0 = COPY %edi'
28       # CHECK: [[@LINE+1]]:18: use of undefined stack object '%stack.2'
29       - 'MOV32mr %stack.2, 1, _, 0, _, %0'
30       - '%eax = COPY %0'
31       - 'RETQ %eax'
32 ...