1*9880d681SAndroid Build Coastguard Worker# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker# This test ensures that the MIR parser reports an error when it encounters a 3*9880d681SAndroid Build Coastguard Worker# stack object with a name that can't be associated with an alloca instruction. 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker--- | 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker define i32 @test(i32 %a) { 8*9880d681SAndroid Build Coastguard Worker entry: 9*9880d681SAndroid Build Coastguard Worker %b = alloca i32 10*9880d681SAndroid Build Coastguard Worker store i32 %a, i32* %b 11*9880d681SAndroid Build Coastguard Worker %c = load i32, i32* %b 12*9880d681SAndroid Build Coastguard Worker ret i32 %c 13*9880d681SAndroid Build Coastguard Worker } 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Worker... 16*9880d681SAndroid Build Coastguard Worker--- 17*9880d681SAndroid Build Coastguard Workername: test 18*9880d681SAndroid Build Coastguard WorkerframeInfo: 19*9880d681SAndroid Build Coastguard Worker maxAlignment: 4 20*9880d681SAndroid Build Coastguard Workerstack: 21*9880d681SAndroid Build Coastguard Worker # CHECK: [[@LINE+1]]:20: alloca instruction named 'x' isn't defined in the function 'test' 22*9880d681SAndroid Build Coastguard Worker - { id: 0, name: x, offset: -12, size: 4, alignment: 4 } 23*9880d681SAndroid Build Coastguard Workerbody: | 24*9880d681SAndroid Build Coastguard Worker bb.0.entry: 25*9880d681SAndroid Build Coastguard Worker MOV32mr %rsp, 1, _, -4, _, %edi 26*9880d681SAndroid Build Coastguard Worker %eax = MOV32rm %rsp, 1, _, -4, _ 27*9880d681SAndroid Build Coastguard Worker RETQ %eax 28*9880d681SAndroid Build Coastguard Worker... 29