1 ; RUN: llc -mcpu=gfx900 -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - %s | llvm-dwarfdump -debug-frame - | FileCheck %s
3 ; CHECK: .debug_frame contents:
4 ; CHECK: 00000000 0000000c ffffffff CIE
5 ; CHECK-NEXT: Format: DWARF32
6 ; CHECK-NEXT: Version: 4
7 ; CHECK-NEXT: Augmentation: ""
8 ; CHECK-NEXT: Address size: 8
9 ; CHECK-NEXT: Segment desc size: 0
10 ; CHECK-NEXT: Code alignment factor: 4
11 ; CHECK-NEXT: Data alignment factor: 4
12 ; CHECK-NEXT: Return address column: 16
16 ; CHECK: 00000010 {{[0-9]+}} 00000000 FDE cie=00000000 pc=00000000...{{[0-9]+}}
17 ; CHECK-NEXT: Format: DWARF32
19 ; CHECK: .eh_frame contents:
22 define void @func() #0 {
26 attributes #0 = { nounwind }
28 !llvm.module.flags = !{!0, !1}
31 !0 = !{i32 7, !"Dwarf Version", i32 5}
32 !1 = !{i32 2, !"Debug Info Version", i32 3}
33 !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, emissionKind: FullDebug)
34 !3 = !DIFile(filename: "file", directory: "dir")