brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · 1f13282 Raw
69 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1030 < %s | FileCheck -check-prefix=GCN %s3 4; Verify that the debug locations in this function are correct, in particular5; that the location for %cast doesn't appear in the block of %lab.6 7define void @_Z12lane_pc_testj() #0 !dbg !9 {8; GCN-LABEL: _Z12lane_pc_testj:9; GCN:       .Lfunc_begin0:10; GCN-NEXT:    .file 0 "/" "t.cpp"11; GCN-NEXT:    .loc 0 3 0 ; t.cpp:3:012; GCN-NEXT:    .cfi_sections .debug_frame13; GCN-NEXT:    .cfi_startproc14; GCN-NEXT:  ; %bb.0:15; GCN-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)16; GCN-NEXT:  ; %bb.1: ; %lab17; GCN-NEXT:    s_mov_b64 s[4:5], 018; GCN-NEXT:  .Ltmp0:19; GCN-NEXT:    .loc 0 12 1 prologue_end ; t.cpp:12:120; GCN-NEXT:    s_mov_b64 s[6:7], src_private_base21; GCN-NEXT:    s_mov_b32 s6, -122; GCN-NEXT:    s_lshr_b32 s8, s32, 523; GCN-NEXT:    s_cmp_lg_u32 s8, s624; GCN-NEXT:    s_cselect_b32 s5, s7, s525; GCN-NEXT:    s_cselect_b32 s4, s8, s426; GCN-NEXT:    v_mov_b32_e32 v2, 027; GCN-NEXT:    .loc 0 13 1 ; t.cpp:13:128; GCN-NEXT:    v_mov_b32_e32 v0, s429; GCN-NEXT:    v_mov_b32_e32 v1, s530; GCN-NEXT:    flat_store_dword v[0:1], v231; GCN-NEXT:    v_mov_b32_e32 v2, 132; GCN-NEXT:    .loc 0 14 1 ; t.cpp:14:133; GCN-NEXT:    v_mov_b32_e32 v0, s434; GCN-NEXT:    v_mov_b32_e32 v1, s535; GCN-NEXT:    flat_store_dword v[0:1], v236; GCN-NEXT:    s_waitcnt lgkmcnt(0)37; GCN-NEXT:    s_setpc_b64 s[30:31]38; GCN-NEXT:  .Ltmp1:39  %alloc = alloca i32, align 4, addrspace(5)40  %cast = addrspacecast ptr addrspace(5) %alloc to ptr, !dbg !1241  br label %lab42 43lab:44  store i32 0, ptr %cast, align 4, !dbg !1345  store i32 1, ptr %cast, align 4, !dbg !1446  ret void47}48 49attributes #0 = { noinline optnone }50 51!llvm.dbg.cu = !{!0}52!llvm.module.flags = !{!2, !3, !4, !5, !6, !7, !8}53 54!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 20.0.0git", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)55!1 = !DIFile(filename: "t.cpp", directory: "/")56!2 = !{i32 1, !"amdhsa_code_object_version", i32 500}57!3 = !{i32 1, !"amdgpu_printf_kind", !"hostcall"}58!4 = !{i32 7, !"Dwarf Version", i32 5}59!5 = !{i32 2, !"Debug Info Version", i32 3}60!6 = !{i32 1, !"wchar_size", i32 4}61!7 = !{i32 8, !"PIC Level", i32 2}62!8 = !{i32 7, !"frame-pointer", i32 2}63!9 = distinct !DISubprogram(name: "lane_pc_test", linkageName: "_Z12lane_pc_testj", scope: !1, file: !1, line: 1, scopeLine: 3, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, type: !10, unit: !0)64!10 = !DISubroutineType(types: !11)65!11 = !{}66!12 = !DILocation(line: 12, column: 1, scope: !9)67!13 = !DILocation(line: 13, column: 1, scope: !9)68!14 = !DILocation(line: 14, column: 1, scope: !9)69