1 # RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
2 # This test ensures that an error is reported when an stack object reference
3 # uses a different name then the stack object definition.
7 define i32 @test(i32 %a) {
11 %c = load i32, i32* %b
18 tracksRegLiveness: true
20 - { id: 0, class: gr32 }
24 - { id: 0, name: b, size: 4, alignment: 4 }
28 ; CHECK: [[@LINE+1]]:13: the name of the stack object '%stack.0' isn't 'x'
29 MOV32mr %stack.0.x, 1, _, 0, _, %0