1; This checks that .debug_info.dwo can be generated in the DWARF64 format. 2 3; RUN: llc -mtriple=x86_64 -dwarf-version=5 -dwarf64 -split-dwarf-file=foo.dwo -filetype=obj %s -o %t 4; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s 5 6; CHECK: .debug_info.dwo contents: 7; CHECK-NEXT: Compile Unit: {{.+}}, format = DWARF64, version = 0x0005, unit_type = DW_UT_split_compile, abbr_offset = 0x0000, 8 9; IR generated and reduced from: 10; $ cat foo.c 11; int foo; 12; $ clang -g -S -emit-llvm foo.c -o foo.ll 13 14target triple = "x86_64-unknown-linux-gnu" 15 16@foo = dso_local global i32 0, align 4, !dbg !0 17 18!llvm.dbg.cu = !{!2} 19!llvm.module.flags = !{!7, !8, !9} 20!llvm.ident = !{!10} 21 22!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 23!1 = distinct !DIGlobalVariable(name: "foo", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true) 24!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 12.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5, splitDebugInlining: false, nameTableKind: None) 25!3 = !DIFile(filename: "foo.c", directory: "/tmp") 26!4 = !{} 27!5 = !{!0} 28!6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 29!7 = !{i32 7, !"Dwarf Version", i32 4} 30!8 = !{i32 2, !"Debug Info Version", i32 3} 31!9 = !{i32 1, !"wchar_size", i32 4} 32!10 = !{!"clang version 12.0.0"} 33