blob: 5d40791b4c31f2722b205323a3f27d1fd3d33f9d [file] [log] [blame]
Matthias Braun538859c2016-07-16 02:24:59 +00001# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
Alex Lorenz7feaf7c2015-07-16 23:37:45 +00002--- |
3
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 }
11
12...
13---
14name: test
15isSSA: true
16tracksRegLiveness: true
17registers:
18 - { id: 0, class: gr32 }
19frameInfo:
20 maxAlignment: 4
21stack:
22 - { id: 0, name: b, size: 4, alignment: 4 }
Alex Lorenz5022f6b2015-08-13 23:10:16 +000023body: |
24 bb.0.entry:
25 %0 = COPY %edi
26 ; CHECK: [[@LINE+1]]:13: use of undefined stack object '%stack.2'
27 MOV32mr %stack.2, 1, _, 0, _, %0
28 %eax = COPY %0
29 RETQ %eax
Alex Lorenz7feaf7c2015-07-16 23:37:45 +000030...