brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.4 KiB · e6243f0 Raw
74 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx906 -O0 < %s | FileCheck %s3 4; Test that source locations (.loc directives) are not added to the code within the prologue.5 6; Function Attrs: convergent mustprogress nounwind7define hidden void @_ZL3barv() #0 !dbg !1644 {8; CHECK-LABEL: _ZL3barv:9; CHECK:       .Lfunc_begin0:10; CHECK-NEXT:    .file 0 "/tmp" "lane-info.cpp" md5 0x4ab9b75a30baffdf0f6f536a80e3e38211; CHECK-NEXT:    .loc 0 30 0 ; lane-info.cpp:30:012; CHECK-NEXT:    .cfi_sections .debug_frame13; CHECK-NEXT:    .cfi_startproc14; CHECK-NEXT:  ; %bb.0: ; %entry15; CHECK-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)16; CHECK-NEXT:    s_mov_b32 s16, s3317; CHECK-NEXT:    s_mov_b32 s33, s3218; CHECK-NEXT:    s_or_saveexec_b64 s[18:19], -119; CHECK-NEXT:    buffer_store_dword v40, off, s[0:3], s33 ; 4-byte Folded Spill20; CHECK-NEXT:    s_mov_b64 exec, s[18:19]21; CHECK-NEXT:    v_writelane_b32 v40, s16, 222; CHECK-NEXT:    s_add_i32 s32, s32, 0x40023; CHECK-NEXT:    v_writelane_b32 v40, s30, 024; CHECK-NEXT:    v_writelane_b32 v40, s31, 125; CHECK-NEXT:  .Ltmp0:26; CHECK-NEXT:    .loc 0 31 3 prologue_end ; lane-info.cpp:31:327; CHECK-NEXT:    s_getpc_b64 s[16:17]28; CHECK-NEXT:    s_add_u32 s16, s16, _ZL13sleep_foreverv@gotpcrel32@lo+429; CHECK-NEXT:    s_addc_u32 s17, s17, _ZL13sleep_foreverv@gotpcrel32@hi+1230; CHECK-NEXT:    s_load_dwordx2 s[16:17], s[16:17], 0x031; CHECK-NEXT:    s_mov_b64 s[22:23], s[2:3]32; CHECK-NEXT:    s_mov_b64 s[20:21], s[0:1]33; CHECK-NEXT:    s_mov_b64 s[0:1], s[20:21]34; CHECK-NEXT:    s_mov_b64 s[2:3], s[22:23]35; CHECK-NEXT:    s_waitcnt lgkmcnt(0)36; CHECK-NEXT:    s_swappc_b64 s[30:31], s[16:17]37; CHECK-NEXT:  .Ltmp1:38; CHECK-NEXT:    .loc 0 32 1 ; lane-info.cpp:32:139; CHECK-NEXT:    v_readlane_b32 s31, v40, 140; CHECK-NEXT:    v_readlane_b32 s30, v40, 041; CHECK-NEXT:    s_mov_b32 s32, s3342; CHECK-NEXT:    v_readlane_b32 s4, v40, 243; CHECK-NEXT:    s_or_saveexec_b64 s[6:7], -144; CHECK-NEXT:    buffer_load_dword v40, off, s[0:3], s33 ; 4-byte Folded Reload45; CHECK-NEXT:    s_mov_b64 exec, s[6:7]46; CHECK-NEXT:    s_mov_b32 s33, s447; CHECK-NEXT:    s_waitcnt vmcnt(0)48; CHECK-NEXT:    s_setpc_b64 s[30:31]49; CHECK-NEXT:  .Ltmp2:50entry:51  call void @_ZL13sleep_foreverv(), !dbg !164652  ret void, !dbg !164753}54 55; Function Attrs: convergent nounwind56declare void @_ZL13sleep_foreverv() #057 58attributes #0 = { nounwind "frame-pointer"="all" }59 60!llvm.dbg.cu = !{!0}61!llvm.module.flags = !{!1638, !1639, !1640, !1641}62!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_11, file: !1, producer: "clang version 13.0.0)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)63!1 = !DIFile(filename: "lane-info.cpp", directory: "/tmp", checksumkind: CSK_MD5, checksum: "4ab9b75a30baffdf0f6f536a80e3e382")64!371 = !DISubroutineType(types: !372)65!372 = !{null}66!1638 = !{i32 7, !"Dwarf Version", i32 5}67!1639 = !{i32 2, !"Debug Info Version", i32 3}68!1640 = !{i32 1, !"wchar_size", i32 4}69!1641 = !{i32 7, !"PIC Level", i32 1}70!1644 = distinct !DISubprogram(name: "bar", linkageName: "_ZL3barv", scope: !1, file: !1, line: 29, type: !371, scopeLine: 30, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !1645)71!1645 = !{}72!1646 = !DILocation(line: 31, column: 3, scope: !1644)73!1647 = !DILocation(line: 32, column: 1, scope: !1644)74