brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.6 KiB · 7336a54 Raw
98 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 52# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 -run-pass=si-lower-sgpr-spills,greedy,si-lower-wwm-copies,virtregrewriter,prologepilog -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s3 4---5name:            widget6tracksRegLiveness: true7frameInfo:8  adjustsStack:    true9stack:10  - { id: 0, type: spill-slot, size: 4, alignment: 4, stack-id: sgpr-spill }11  - { id: 1, type: spill-slot, size: 4, alignment: 4, stack-id: sgpr-spill }12machineFunctionInfo:13  hasSpilledSGPRs: true14  scratchRSrcReg:  '$sgpr0_sgpr1_sgpr2_sgpr3'15  stackPtrOffsetReg: '$sgpr32'16body:             |17  ; GCN-LABEL: name: widget18  ; GCN: bb.0:19  ; GCN-NEXT:   successors: %bb.1(0x80000000)20  ; GCN-NEXT:   liveins: $sgpr12, $sgpr13, $sgpr14, $sgpr15, $agpr021  ; GCN-NEXT: {{  $}}22  ; GCN-NEXT:   $sgpr4_sgpr5 = S_XOR_SAVEEXEC_B64 -1, implicit-def $exec, implicit-def dead $scc, implicit $exec23  ; GCN-NEXT:   $vgpr63 = V_ACCVGPR_READ_B32_e64 $agpr0, implicit $exec24  ; GCN-NEXT:   BUFFER_STORE_DWORD_OFFSET $vgpr63, $sgpr0_sgpr1_sgpr2_sgpr3, $sgpr32, 0, 0, 0, implicit $exec :: (store (s32) into %stack.2, addrspace 5)25  ; GCN-NEXT:   $exec = S_MOV_B64 -126  ; GCN-NEXT:   BUFFER_STORE_DWORD_OFFSET killed $vgpr62, $sgpr0_sgpr1_sgpr2_sgpr3, $sgpr32, 4, 0, 0, implicit $exec :: (store (s32) into %stack.3, addrspace 5)27  ; GCN-NEXT:   $exec = S_MOV_B64 killed $sgpr4_sgpr528  ; GCN-NEXT:   renamable $vgpr62 = IMPLICIT_DEF29  ; GCN-NEXT:   $vgpr62 = SI_SPILL_S32_TO_VGPR $sgpr15, 0, killed $vgpr6230  ; GCN-NEXT:   $noreg = S_OR_SAVEEXEC_B64 -1, implicit-def $exec, implicit-def dead $scc, implicit $exec31  ; GCN-NEXT:   renamable $agpr0 = COPY killed renamable $vgpr6232  ; GCN-NEXT:   $exec = S_MOV_B64 killed $noreg33  ; GCN-NEXT:   renamable $vgpr62 = IMPLICIT_DEF34  ; GCN-NEXT:   dead renamable $vgpr62 = V_AND_B32_e32 1, killed $vgpr62, implicit $exec35  ; GCN-NEXT: {{  $}}36  ; GCN-NEXT: bb.1:37  ; GCN-NEXT:   successors: %bb.3(0x40000000), %bb.2(0x40000000)38  ; GCN-NEXT:   liveins: $agpr039  ; GCN-NEXT: {{  $}}40  ; GCN-NEXT:   S_CBRANCH_EXECZ %bb.2, implicit $exec41  ; GCN-NEXT:   S_BRANCH %bb.342  ; GCN-NEXT: {{  $}}43  ; GCN-NEXT: bb.2:44  ; GCN-NEXT:   successors: %bb.4(0x04000000), %bb.1(0x7c000000)45  ; GCN-NEXT:   liveins: $agpr0, $sgpr86, $sgpr87, $sgpr66_sgpr67, $sgpr68_sgpr69, $sgpr70_sgpr71, $sgpr80_sgpr81, $sgpr82_sgpr83, $sgpr84_sgpr85, $sgpr96_sgpr97, $sgpr98_sgpr9946  ; GCN-NEXT: {{  $}}47  ; GCN-NEXT:   S_CBRANCH_EXECNZ %bb.1, implicit $exec48  ; GCN-NEXT:   S_BRANCH %bb.449  ; GCN-NEXT: {{  $}}50  ; GCN-NEXT: bb.3:51  ; GCN-NEXT:   successors: %bb.2(0x80000000)52  ; GCN-NEXT:   liveins: $agpr053  ; GCN-NEXT: {{  $}}54  ; GCN-NEXT:   $noreg = S_OR_SAVEEXEC_B64 -1, implicit-def $exec, implicit-def dead $scc, implicit $exec55  ; GCN-NEXT:   renamable $vgpr62 = COPY renamable $agpr056  ; GCN-NEXT:   $exec = S_MOV_B64 killed $noreg57  ; GCN-NEXT:   $sgpr14 = SI_RESTORE_S32_FROM_VGPR killed $vgpr62, 158  ; GCN-NEXT:   S_BRANCH %bb.259  ; GCN-NEXT: {{  $}}60  ; GCN-NEXT: bb.4:61  ; GCN-NEXT:   $sgpr4_sgpr5 = S_XOR_SAVEEXEC_B64 -1, implicit-def $exec, implicit-def dead $scc, implicit $exec62  ; GCN-NEXT:   $vgpr63 = BUFFER_LOAD_DWORD_OFFSET $sgpr0_sgpr1_sgpr2_sgpr3, $sgpr32, 0, 0, 0, implicit $exec :: (load (s32) from %stack.2, addrspace 5)63  ; GCN-NEXT:   $agpr0 = V_ACCVGPR_WRITE_B32_e64 killed $vgpr63, implicit $exec64  ; GCN-NEXT:   $exec = S_MOV_B64 -165  ; GCN-NEXT:   $vgpr62 = BUFFER_LOAD_DWORD_OFFSET $sgpr0_sgpr1_sgpr2_sgpr3, $sgpr32, 4, 0, 0, implicit $exec :: (load (s32) from %stack.3, addrspace 5)66  ; GCN-NEXT:   $exec = S_MOV_B64 killed $sgpr4_sgpr567  ; GCN-NEXT:   SI_RETURN68  bb.0:69    liveins: $sgpr12, $sgpr13, $sgpr14, $sgpr1570 71    %45:vgpr_32 = IMPLICIT_DEF72    SI_SPILL_S32_SAVE $sgpr15, %stack.0, implicit $exec, implicit $sgpr32 :: (store (s32) into %stack.0, addrspace 5)73    %16:vgpr_32 = V_AND_B32_e32 1, %45, implicit $exec74 75  bb.1:76    successors: %bb.3, %bb.277 78    S_CBRANCH_EXECZ %bb.2, implicit $exec79    S_BRANCH %bb.380 81  bb.2:82    successors: %bb.4(0x04000000), %bb.1(0x7c000000)83    liveins: $sgpr86, $sgpr87, $sgpr66_sgpr67, $sgpr68_sgpr69, $sgpr70_sgpr71, $sgpr80_sgpr81, $sgpr82_sgpr83, $sgpr84_sgpr85, $sgpr96_sgpr97, $sgpr98_sgpr9984 85    S_CBRANCH_EXECNZ %bb.1, implicit $exec86    S_BRANCH %bb.487 88  bb.3:89    ADJCALLSTACKUP 0, 0, implicit-def dead $scc, implicit-def $sgpr32, implicit $sgpr3290    $sgpr14 = SI_SPILL_S32_RESTORE %stack.1, implicit $exec, implicit $sgpr32 :: (load (s32) from %stack.1, addrspace 5)91    ADJCALLSTACKDOWN 0, 28, implicit-def dead $scc, implicit-def $sgpr32, implicit $sgpr3292    S_BRANCH %bb.293 94  bb.4:95    SI_RETURN96 97...98