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---
16name:            test
17isSSA:           true
18tracksRegLiveness: true
19registers:
20  - { id: 0, class: gr32 }
21  - { id: 1, class: gr32 }
22frameInfo:
23  maxAlignment:    4
24fixedStack:
25  - { id: 0, offset: 0, size: 4, isImmutable: true, isAliased: false }
26stack:
27  - { id: 0, name: b, size: 4, alignment: 4 }
28  - { id: 1, size: 4, alignment: 4 }
29body: |
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...
39