[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / CodeGen / MIR / X86 / undefined-stack-object.mir
blobbf3f5fa2eae5f18a389092e103f9281ea70b7009
1 # RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
2 --- |
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   }
12 ...
13 ---
14 name:            test
15 tracksRegLiveness: true
16 registers:
17   - { id: 0, class: gr32 }
18 frameInfo:
19   maxAlignment:  4
20 stack:
21   - { id: 0, name: b, size: 4, alignment: 4 }
22 body: |
23   bb.0.entry:
24     %0 = COPY $edi
25     ; CHECK: [[@LINE+1]]:13: use of undefined stack object '%stack.2'
26     MOV32mr %stack.2, 1, _, 0, _, %0
27     $eax = COPY %0
28     RET64 $eax
29 ...