MIR Serialization: Change MIR syntax - use custom syntax for MBBs.
[oota-llvm.git] / test / CodeGen / MIR / X86 / stack-object-redefinition-error.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     %x = alloca i64
9     store i32 %a, i32* %b
10     store i64 2, i64* %x
11     %c = load i32, i32* %b
12     ret i32 %c
13   }
14
15   attributes #0 = { "no-frame-pointer-elim"="false" }
16
17 ...
18 ---
19 name:            test
20 tracksRegLiveness: true
21 liveins:
22   - { reg: '%edi' }
23 frameInfo:
24   maxAlignment:    8
25 stack:
26   - { id: 0, name: b, offset: -12, size: 4, alignment: 4 }
27 # CHECK: [[@LINE+1]]:11: redefinition of stack object '%stack.0'
28   - { id: 0, name: x, offset: -24, size: 8, alignment: 8 }
29 body: |
30   bb.0.entry:
31     liveins: %edi
32
33     MOV32mr %rsp, 1, _, -4, _, killed %edi
34     MOV64mi32 %rsp, 1, _, -16, _, 2
35     %eax = MOV32rm %rsp, 1, _, -4, _
36     RETQ %eax
37 ...