blob: 46ffeb198a6a4fbaf273c2f0f60e7cf68e396ffd [file] [log] [blame]
Krzysztof Parzyszek046090d2018-03-12 14:01:28 +00001; RUN: llc -march=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, i32* %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}
Shiva Chen2c864552018-05-09 02:40:45 +000028!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)
Krzysztof Parzyszek046090d2018-03-12 14:01:28 +000029!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)