• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-as < %s -o %t.bc -data-layout=A5 2>&1 | FileCheck -check-prefixes=COM,AS %s
2; RUN: llvm-dis < %t.bc | FileCheck -check-prefixes=COM,DIS %s
3; RUN: opt < %s -S -data-layout=A5 2>&1 | FileCheck -check-prefixes=COM,AS %s
4; RUN: opt < %t.bc -S | FileCheck -check-prefixes=COM,DIS %s
5
6define void @foo() {
7entry:
8; DIS: target datalayout = "A5"
9; DIS: %tmp = alloca i32, addrspace(5)
10  %tmp = alloca i32, addrspace(5)
11  call void @llvm.dbg.value(
12      metadata i8* undef,
13      metadata !DILocalVariable(scope: !1),
14      metadata !DIExpression())
15; COM-NOT: Allocation instruction pointer not in the stack address space!
16; AS: llvm.dbg.value intrinsic requires a !dbg attachment
17; AS: warning: ignoring invalid debug info in <stdin>
18ret void
19}
20
21declare void @llvm.dbg.value(metadata, metadata, metadata)
22
23!llvm.module.flags = !{!0}
24!0 = !{i32 2, !"Debug Info Version", i32 3}
25!1 = distinct !DISubprogram(name: "foo")
26