1 ; This checks that .debug_frame can be generated in the DWARF64 format.
3 ; RUN: llc -mtriple=x86_64 -dwarf64 -force-dwarf-frame-section -filetype=obj %s -o %t
4 ; RUN: llvm-dwarfdump -debug-frame %t | FileCheck %s
6 ; CHECK: .debug_frame contents:
7 ; CHECK: 00000000 {{.+}} ffffffffffffffff CIE
8 ; CHECK-NEXT: Format: DWARF64
9 ; CHECK: {{.+}} 0000000000000000 FDE cie=00000000 pc=
10 ; CHECK-NEXT: Format: DWARF64
12 ; IR generated and reduced from:
15 ; $ clang -g -S -emit-llvm foo.c -o foo.ll
17 target triple = "x86_64-unknown-linux-gnu"
19 define dso_local void @foo() #0 !dbg !7 {
24 !llvm.module.flags = !{!3, !4, !5}
27 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 12.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None)
28 !1 = !DIFile(filename: "foo.c", directory: "/tmp")
30 !3 = !{i32 7, !"Dwarf Version", i32 4}
31 !4 = !{i32 2, !"Debug Info Version", i32 3}
32 !5 = !{i32 1, !"wchar_size", i32 4}
33 !6 = !{!"clang version 12.0.0"}
34 !7 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
35 !8 = !DISubroutineType(types: !9)
37 !10 = !DILocation(line: 1, column: 14, scope: !7)