diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/DebugInfo/2010-06-29-InlinedFnLocalVar.ll | 1 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/AArch64/struct_by_value.ll | 1 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/PowerPC/tls-fission.ll | 1 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/X86/dbg-i128-const.ll | 1 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/X86/header.ll | 29 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/X86/stmt-list.ll | 5 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/X86/tls.ll | 1 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/array.ll | 1 | ||||
| -rw-r--r-- | llvm/test/MC/ELF/gen-dwarf.s | 2 |
9 files changed, 40 insertions, 2 deletions
diff --git a/llvm/test/DebugInfo/2010-06-29-InlinedFnLocalVar.ll b/llvm/test/DebugInfo/2010-06-29-InlinedFnLocalVar.ll index b4742b6c5aa..442c0cc80e1 100644 --- a/llvm/test/DebugInfo/2010-06-29-InlinedFnLocalVar.ll +++ b/llvm/test/DebugInfo/2010-06-29-InlinedFnLocalVar.ll @@ -1,6 +1,7 @@ ; RUN: %llc_dwarf -O2 %s -o - | FileCheck %s ; Check struct X for dead variable xyz from inlined function foo. +; CHECK: .Lsection_info ; CHECK: DW_TAG_structure_type ; CHECK-NEXT: info_string diff --git a/llvm/test/DebugInfo/AArch64/struct_by_value.ll b/llvm/test/DebugInfo/AArch64/struct_by_value.ll index 5d6aa6c4d2e..7fcab2bdde3 100644 --- a/llvm/test/DebugInfo/AArch64/struct_by_value.ll +++ b/llvm/test/DebugInfo/AArch64/struct_by_value.ll @@ -1,6 +1,7 @@ ; A by-value struct is a register-indirect value (breg). ; RUN: llc %s -filetype=asm -o - | FileCheck %s +; CHECK: Lsection_info: ; CHECK: DW_AT_location ; CHECK-NEXT: .byte 112 ; 112 = 0x70 = DW_OP_breg0 diff --git a/llvm/test/DebugInfo/PowerPC/tls-fission.ll b/llvm/test/DebugInfo/PowerPC/tls-fission.ll index d6dd62cfccc..74674858a50 100644 --- a/llvm/test/DebugInfo/PowerPC/tls-fission.ll +++ b/llvm/test/DebugInfo/PowerPC/tls-fission.ll @@ -14,6 +14,7 @@ ; CHECK-NEXT: .byte 224 ; check that the expected TLS address description is the first thing in the debug_addr section ; CHECK: debug_addr +; CHECK-NEXT: .Laddr_sec: ; CHECK-NEXT: .quad tls@dtprel+32768 @tls = thread_local global i32 0, align 4 diff --git a/llvm/test/DebugInfo/X86/dbg-i128-const.ll b/llvm/test/DebugInfo/X86/dbg-i128-const.ll index ee428511e16..d172f01b64a 100644 --- a/llvm/test/DebugInfo/X86/dbg-i128-const.ll +++ b/llvm/test/DebugInfo/X86/dbg-i128-const.ll @@ -1,5 +1,6 @@ ; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s +; CHECK: .section .debug_info ; CHECK: DW_AT_const_value ; CHECK-NEXT: 42 diff --git a/llvm/test/DebugInfo/X86/header.ll b/llvm/test/DebugInfo/X86/header.ll new file mode 100644 index 00000000000..263f9ec923c --- /dev/null +++ b/llvm/test/DebugInfo/X86/header.ll @@ -0,0 +1,29 @@ +; RUN: llc -mtriple x86_64-pc-linux < %s | FileCheck %s + +; Test that we don't pollute the start of the file with debug sections + +; CHECK: .text +; CHECK-NEXT: .file "<stdin>" +; CHECK-NEXT: .globl f +; CHECK-NEXT: .align 16, 0x90 +; CHECK-NEXT: .type f,@function +; CHECK-NEXT: f: # @f + +; CHECK: .section .debug_str + +define void @f() { + ret void, !dbg !9 +} +!llvm.dbg.cu = !{!0} +!llvm.module.flags = !{!7, !8} + +!0 = !MDCompileUnit(language: DW_LANG_C99, file: !1, producer: "foo", isOptimized: true, runtimeVersion: 0, emissionKind: 1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) +!1 = !MDFile(filename: "/foo/test.c", directory: "/foo") +!2 = !{} +!3 = !{!4} +!4 = !MDSubprogram(name: "f", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: true, function: void ()* @f, variables: !2) +!5 = !MDSubroutineType(types: !6) +!6 = !{null} +!7 = !{i32 2, !"Dwarf Version", i32 4} +!8 = !{i32 2, !"Debug Info Version", i32 3} +!9 = !MDLocation(line: 1, column: 15, scope: !4) diff --git a/llvm/test/DebugInfo/X86/stmt-list.ll b/llvm/test/DebugInfo/X86/stmt-list.ll index cbc10ebb467..7cad3fc7ee3 100644 --- a/llvm/test/DebugInfo/X86/stmt-list.ll +++ b/llvm/test/DebugInfo/X86/stmt-list.ll @@ -1,9 +1,10 @@ ; RUN: llc -mtriple x86_64-pc-linux-gnu < %s | FileCheck %s +; CHECK: .long .Lline_table_start0 # DW_AT_stmt_list + ; CHECK: .section .debug_line,"",@progbits ; CHECK-NEXT: .Lsection_line: - -; CHECK: .long .Lline_table_start0 # DW_AT_stmt_list +; CHECK-NEXT: .Lline_table_start0: define void @f() { entry: diff --git a/llvm/test/DebugInfo/X86/tls.ll b/llvm/test/DebugInfo/X86/tls.ll index 57497b5ce1a..d43a173485c 100644 --- a/llvm/test/DebugInfo/X86/tls.ll +++ b/llvm/test/DebugInfo/X86/tls.ll @@ -68,6 +68,7 @@ ; check that the expected TLS address description is the first thing in the debug_addr section ; FISSION: .section .debug_addr +; FISSION: addr_sec: ; FISSION-NEXT: .quad tls@DTPOFF ; FISSION-NEXT: .quad glbl ; FISSION-NOT: .quad glbl diff --git a/llvm/test/DebugInfo/array.ll b/llvm/test/DebugInfo/array.ll index 634a17d0925..119ffd301ff 100644 --- a/llvm/test/DebugInfo/array.ll +++ b/llvm/test/DebugInfo/array.ll @@ -25,6 +25,7 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone !7 = distinct !MDLexicalBlock(line: 3, column: 12, file: !14, scope: !0) !8 = !MDCompositeType(tag: DW_TAG_array_type, align: 32, file: !14, scope: !2, baseType: !5, elements: !9) !9 = !{!10} +;CHECK: section_info: ;CHECK: DW_TAG_subrange_type ;CHECK-NEXT: DW_AT_type ;CHECK-NOT: DW_AT_lower_bound diff --git a/llvm/test/MC/ELF/gen-dwarf.s b/llvm/test/MC/ELF/gen-dwarf.s index 7f0c0594ce9..5c90bf724b9 100644 --- a/llvm/test/MC/ELF/gen-dwarf.s +++ b/llvm/test/MC/ELF/gen-dwarf.s @@ -34,6 +34,7 @@ foo: // ASM: .section .debug_info // ASM: .section .debug_abbrev +// ASM-NEXT: .Lsection_abbrev: // ASM-NEXT: [[ABBREV_LABEL:.Ltmp[0-9]+]] // Second instance of the section has the CU @@ -48,6 +49,7 @@ foo: // ASM-NEXT: .long [[LINE_LABEL:.L[a-z0-9]+]] // ASM: .section .debug_line +// ASM-NEXT:.Lsection_line: // ASM-NEXT: [[LINE_LABEL]] // DWARF1: Dwarf version 1 is not supported. |

