xref: /llvm-project/llvm/test/CodeGen/Hexagon/debug-line_table_start.ll (revision 2208c97c1bec2512d4e47b6223db6d95a7037956)
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s
2
3; This test case is little iffy. It checks for line_table_start,
4; which in future may be completely replaced with some other label name.
5; The first check is the use, the second check is for defition.
6
7; CHECK: .Lline_table_start0
8; CHECK: .Lline_table_start0:
9
10; Function Attrs: nounwind
11define i32 @f0() #0 !dbg !5 {
12b0:
13  %v0 = alloca i32, align 4
14  store i32 0, ptr %v0, align 4
15  ret i32 0, !dbg !9
16}
17
18attributes #0 = { nounwind "target-cpu"="hexagonv55" }
19
20!llvm.dbg.cu = !{!0}
21!llvm.module.flags = !{!3, !4}
22
23!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "Clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
24!1 = !DIFile(filename: "/tmp/1.c", directory: "/tmp")
25!2 = !{}
26!3 = !{i32 2, !"Dwarf Version", i32 4}
27!4 = !{i32 2, !"Debug Info Version", i32 3}
28!5 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !6, isLocal: false, isDefinition: true, scopeLine: 1, isOptimized: false, unit: !0, retainedNodes: !2)
29!6 = !DISubroutineType(types: !7)
30!7 = !{!8}
31!8 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
32!9 = !DILocation(line: 2, column: 3, scope: !5)
33