53 lines · plain
1# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 -amdgpu-spill-vgpr-to-agpr=true -run-pass=prologepilog -o - %s | FileCheck %s2 3--- |4 define amdgpu_kernel void @test() { ret void }5 6 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !4, producer: "llvm", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, retainedTypes: !4)7 !1 = !DILocalVariable(name: "a", scope: !2, file: !4, line: 126, type: !6)8 !2 = distinct !DISubprogram(name: "test", scope: !4, file: !4, line: 1, type: !3, isLocal: false, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !5)9 !3 = !DISubroutineType(types: !4)10 !4 = !DIFile(filename: "dummy", directory: "/")11 !5 = !{!1}12 !6 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !7, size: 64, align: 32)13 !7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)14 !8 = !DIExpression()15 !9 = !DILocation(line: 10, column: 9, scope: !2)16 17...18---19name: test20tracksRegLiveness: true21frameInfo:22 maxAlignment: 423fixedStack:24 - { id: 0, type: default, offset: 4, size: 4, alignment: 4, stack-id: default }25stack:26 - { id: 0, type: spill-slot, size: 4, alignment: 4 }27machineFunctionInfo:28 maxKernArgAlign: 429 isEntryFunction: true30 waveLimiter: true31 scratchRSrcReg: '$sgpr96_sgpr97_sgpr98_sgpr99'32 stackPtrOffsetReg: '$sgpr32'33 frameOffsetReg: '$sgpr33'34 hasSpilledVGPRs: true35 argumentInfo:36 privateSegmentBuffer: { reg: '$sgpr0_sgpr1_sgpr2_sgpr3' }37 dispatchPtr: { reg: '$sgpr4_sgpr5' }38 kernargSegmentPtr: { reg: '$sgpr6_sgpr7' }39 workGroupIDX: { reg: '$sgpr8' }40 privateSegmentWaveByteOffset: { reg: '$sgpr9' }41body: |42 ; CHECK-LABEL: name: test43 ; CHECK: bb.0:44 ; CHECK: DBG_VALUE_LIST <{{.*}}>, !DIExpression(), $noreg, 0, debug-location !DILocation(line: 10, column: 9, scope: <{{.*}}>)45 bb.0:46 $vgpr2 = IMPLICIT_DEF47 SI_SPILL_V32_SAVE $vgpr2, %stack.0, $sgpr32, 0, implicit $exec :: (store (s32) into %stack.0, align 4, addrspace 5)48 DBG_VALUE_LIST !1, !8, %stack.0, 0, debug-location !949 50 bb.1:51 renamable $vgpr2 = SI_SPILL_V32_RESTORE %stack.0, $sgpr32, 0, implicit $exec :: (load (s32) from %stack.0, align 4, addrspace 5)52 S_ENDPGM 053