1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck %s 3; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=obj < %s | llvm-dwarfdump --debug-line - | FileCheck --check-prefix=DWARFLINE %s 4 5; Test that the prologue end line directive is emitted after all the prologue instructions 6; and also before the beginning of the epilogue instructions in a trivial function. 7 8; Function Attrs: convergent noinline nounwind optnone mustprogress 9define hidden void @_Z9base_casev() #0 !dbg !6 { 10; CHECK-LABEL: _Z9base_casev: 11; CHECK: .Lfunc_begin0: 12; CHECK-NEXT: .file 0 "dir" "file.cpp" 13; CHECK-NEXT: .loc 0 5 0 ; file.cpp:5:0 14; CHECK-NEXT: .cfi_sections .debug_frame 15; CHECK-NEXT: .cfi_startproc 16; CHECK-NEXT: ; %bb.0: ; %entry 17; CHECK-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) 18; CHECK-NEXT: .Ltmp0: 19; CHECK-NEXT: .loc 0 7 3 prologue_end ; file.cpp:7:3 20; CHECK-NEXT: s_setpc_b64 s[30:31] 21; CHECK-NEXT: .Ltmp1: 22 23; DWARFLINE: file format elf64-amdgpu 24; DWARFLINE: .debug_line contents 25; DWARFLINE: Address Line Column File ISA Discriminator OpIndex Flags 26; DWARFLINE: 0x0000000000000000 5 0 0 0 0 0 is_stmt 27; DWARFLINE-NEXT: 0x0000000000000004 7 3 0 0 0 0 is_stmt prologue_end 28; DWARFLINE-NEXT: 0x0000000000000008 7 3 0 0 0 0 is_stmt end_sequence 29 30entry: 31 ret void, !dbg !7 32} 33 34attributes #0 = { nounwind } 35 36!llvm.dbg.cu = !{!0} 37!llvm.module.flags = !{!4, !5} 38 39!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_11, file: !1, isOptimized: false, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None) 40!1 = !DIFile(filename: "file.cpp", directory: "dir") 41!2 = !DISubroutineType(types: !3) 42!3 = !{null} 43!4 = !{i32 7, !"Dwarf Version", i32 5} 44!5 = !{i32 2, !"Debug Info Version", i32 3} 45!6 = distinct !DISubprogram(name: "base_case", linkageName: "_Z9base_casev", scope: !1, file: !1, line: 5, type: !2, scopeLine: 5, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0) 46!7 = !DILocation(line: 7, column: 3, scope: !6) 47