[clang] Add tracking source deduction guide for the explicitly-written
[llvm-project.git] / llvm / test / CodeGen / MIR / X86 / stack-object-redefinition-error.mir
blob6217ad35c13bb6e8aa7ac8793d2fb5e912dcc799
1 # RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
3 --- |
5   define i32 @test(i32 %a) #0 {
6   entry:
7     %b = alloca i32
8     %x = alloca i64
9     store i32 %a, ptr %b
10     store i64 2, ptr %x
11     %c = load i32, ptr %b
12     ret i32 %c
13   }
15   attributes #0 = { "frame-pointer"="none" }
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
33     MOV32mr $rsp, 1, _, -4, _, killed $edi
34     MOV64mi32 $rsp, 1, _, -16, _, 2
35     $eax = MOV32rm $rsp, 1, _, -4, _
36     RET64 $eax
37 ...