1; RUN: not llvm-as -data-layout=A5 < %s 2>&1 | FileCheck -check-prefixes=COMMON,AS %s
2; RUN: not llc -mtriple amdgcn-amd-amdhsa < %s 2>&1 | FileCheck -check-prefixes=COMMON,LLC %s
3; RUN: llvm-as < %s | not llc -mtriple amdgcn-amd-amdhsa 2>&1 | FileCheck -check-prefixes=MISMATCH %s
4; RUN: not opt -data-layout=A5 -S < %s 2>&1 | FileCheck -check-prefixes=COMMON,LLC %s
5; RUN: llvm-as < %s | not opt -data-layout=A5 2>&1 | FileCheck -check-prefixes=MISMATCH %s
6
7; AS: assembly parsed, but does not verify as correct!
8; COMMON: Allocation instruction pointer not in the stack address space!
9; COMMON:  %tmp = alloca i32
10; MISMATCH: Explicit load/store type does not match pointee type of pointer operand
11; LLC: error: input module is broken!
12
13define amdgpu_kernel void @test() {
14  %tmp = alloca i32
15  %tmp2 = alloca i32*
16  store i32* %tmp, i32** %tmp2
17  ret void
18}
19
20