MIR Serialization: Change MIR syntax - use custom syntax for MBBs.
[oota-llvm.git] / test / CodeGen / MIR / X86 / undefined-fixed-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     %0 = alloca i32
8     store i32 %a, i32* %b
9     store i32 2, i32* %0
10     %c = load i32, i32* %b
11     ret i32 %c
12   }
13
14 ...
15 ---
16 name:            test
17 isSSA:           true
18 tracksRegLiveness: true
19 registers:
20   - { id: 0, class: gr32 }
21   - { id: 1, class: gr32 }
22 frameInfo:
23   maxAlignment:    4
24 fixedStack:
25   - { id: 0, offset: 0, size: 4, isImmutable: true, isAliased: false }
26 stack:
27   - { id: 0, name: b, size: 4, alignment: 4 }
28   - { id: 1, size: 4, alignment: 4 }
29 body: |
30   bb.0.entry:
31     ; CHECK: [[@LINE+1]]:18: use of undefined fixed stack object '%fixed-stack.11'
32     %0 = MOV32rm %fixed-stack.11, 1, _, 0, _
33     MOV32mr %stack.0, 1, _, 0, _, %0
34     MOV32mi %stack.1, 1, _, 0, _, 2
35     %1 = MOV32rm %stack.0, 1, _, 0, _
36     %eax = COPY %1
37     RETL %eax
38 ...