64 lines · plain
1; XFAIL: target={{.*}}-aix{{.*}}2; MD5 checksums provided by IR should be passed through to asm.3; They'll be emitted to an object file only for DWARF 5 or later.4 5; REQUIRES: object-emission6; RUN: %llc_dwarf -dwarf-version 4 -filetype=asm -o - %s | FileCheck %s --check-prefix=ASM-47; RUN: %llc_dwarf -dwarf-version 4 -filetype=asm -dwarf-directory=0 < %s | FileCheck %s --check-prefix=ASM-4-GAS8; RUN: %llc_dwarf -dwarf-version 5 -filetype=asm -o - %s | FileCheck %s --check-prefix=ASM-59; RUN: %llc_dwarf -dwarf-version 4 -filetype=obj -o %t4.o %s10; RUN: llvm-dwarfdump -debug-line %t4.o | FileCheck %s --check-prefix=OBJ11; RUN: %llc_dwarf -dwarf-version 5 -filetype=obj -o %t5.o %s12; RUN: llvm-dwarfdump -debug-line %t5.o | FileCheck %s --check-prefixes=OBJ,OBJ-513 14; ASM-4-GAS: .file 1 "/scratch{{/|\\\\}}t1.h"15; ASM-4-GAS: .file 2 "/scratch{{/|\\\\}}t2.h"16 17; ASM-4-NOT: .file 018; ASM-4: .file 1 "/scratch" "t1.h"19; ASM-4-NOT: md520; ASM-4: .file 2 "/scratch" "t2.h"21; ASM-4-NOT: md522; ASM-5: .file 0 "/scratch" "t.c" md5 0x0000000000000000000000000000000023; ASM-5: .file 1 "t1.h" md5 0x1111111111111111111111111111111124; ASM-5: .file 2 "t2.h" md5 0x2222222222222222222222222222222225 26; OBJ-5: file_names[ 0]:27; OBJ-5-NEXT: name: "t.c"28; OBJ-5-NEXT: dir_index: 029; OBJ-5-NEXT: md5_checksum: 0000000000000000000000000000000030; OBJ: file_names[ 1]:31; OBJ-NEXT: name: "t1.h"32; OBJ-NEXT: dir_index: 033; OBJ-5-NEXT: md5_checksum: 1111111111111111111111111111111134; OBJ: file_names[ 2]:35; OBJ-NEXT: name: "t2.h"36; OBJ-NEXT: dir_index: 037; OBJ-5-NEXT: md5_checksum: 2222222222222222222222222222222238 39; ModuleID = 't.c'40source_filename = "t.c"41 42@t1 = global i32 1, align 4, !dbg !043@t2 = global i32 0, align 4, !dbg !644 45!llvm.dbg.cu = !{!2}46!llvm.module.flags = !{!11, !12, !13}47!llvm.ident = !{!14}48 49!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())50!1 = distinct !DIGlobalVariable(name: "t1", scope: !2, file: !10, line: 1, type: !9, isLocal: false, isDefinition: true)51!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 7.0.0 (trunk 322159)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)52!3 = !DIFile(filename: "t.c", directory: "/scratch", checksumkind: CSK_MD5, checksum: "00000000000000000000000000000000")53!4 = !{}54!5 = !{!0, !6}55!6 = !DIGlobalVariableExpression(var: !7, expr: !DIExpression())56!7 = distinct !DIGlobalVariable(name: "t2", scope: !2, file: !8, line: 1, type: !9, isLocal: false, isDefinition: true)57!8 = !DIFile(filename: "t2.h", directory: "/scratch", checksumkind: CSK_MD5, checksum: "22222222222222222222222222222222")58!9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)59!10 = !DIFile(filename: "t1.h", directory: "/scratch", checksumkind: CSK_MD5, checksum: "11111111111111111111111111111111")60!11 = !{i32 2, !"Dwarf Version", i32 4}61!12 = !{i32 2, !"Debug Info Version", i32 3}62!13 = !{i32 1, !"wchar_size", i32 4}63!14 = !{!"clang version 7.0.0 (trunk 322159)"}64