Krzysztof Parzyszek | 046090d | 2018-03-12 14:01:28 +0000 | [diff] [blame] | 1 | ; 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 |
| 11 | define i32 @f0() #0 !dbg !5 { |
| 12 | b0: |
| 13 | %v0 = alloca i32, align 4 |
| 14 | store i32 0, i32* %v0, align 4 |
| 15 | ret i32 0, !dbg !9 |
| 16 | } |
| 17 | |
| 18 | attributes #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 Chen | 2c86455 | 2018-05-09 02:40:45 +0000 | [diff] [blame] | 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) |
Krzysztof Parzyszek | 046090d | 2018-03-12 14:01:28 +0000 | [diff] [blame] | 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) |