brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.7 KiB · 6e8a512 Raw
82 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 42# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 -run-pass=prologepilog -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s3 4# There are free scratch SGPRs available and hence use the smallest available pair for exec copy5# instead of the pair in the CSR range already given.6 7---8name:            shift_back_exec_copy_reserved_reg9tracksRegLiveness: true10frameInfo:11  maxAlignment:    412machineFunctionInfo:13  isEntryFunction: false14  scratchRSrcReg:  '$sgpr0_sgpr1_sgpr2_sgpr3'15  stackPtrOffsetReg: '$sgpr32'16  frameOffsetReg: '$sgpr33'17  sgprForEXECCopy: '$sgpr34_sgpr35'18body:             |19  bb.0:20    liveins: $sgpr30_sgpr31, $vgpr021    ; GCN-LABEL: name: shift_back_exec_copy_reserved_reg22    ; GCN: liveins: $sgpr30_sgpr31, $vgpr023    ; GCN-NEXT: {{  $}}24    ; GCN-NEXT: $vgpr0 = SI_SPILL_S32_TO_VGPR $sgpr30, 0, killed $vgpr025    ; GCN-NEXT: $vgpr0 = SI_SPILL_S32_TO_VGPR $sgpr31, 1, killed $vgpr026    ; GCN-NEXT: $sgpr4_sgpr5 = S_OR_SAVEEXEC_B64 -1, implicit-def $exec, implicit-def dead $scc, implicit $exec27    ; GCN-NEXT: $vgpr1 = COPY $vgpr028    ; GCN-NEXT: $exec = S_MOV_B64 killed $sgpr4_sgpr529    ; GCN-NEXT: $sgpr30 = SI_RESTORE_S32_FROM_VGPR $vgpr1, 030    ; GCN-NEXT: $sgpr31 = SI_RESTORE_S32_FROM_VGPR $vgpr1, 131    ; GCN-NEXT: S_SETPC_B64 $sgpr30_sgpr3132    $vgpr0 = SI_SPILL_S32_TO_VGPR $sgpr30, 0, killed $vgpr033    $vgpr0 = SI_SPILL_S32_TO_VGPR $sgpr31, 1, killed $vgpr034    $sgpr34_sgpr35 = S_OR_SAVEEXEC_B64 -1, implicit-def $exec, implicit-def dead $scc, implicit $exec35    $vgpr1 = COPY $vgpr036    $exec = S_MOV_B64 killed $sgpr34_sgpr3537    $sgpr30 = SI_RESTORE_S32_FROM_VGPR $vgpr1, 038    $sgpr31 = SI_RESTORE_S32_FROM_VGPR $vgpr1, 139    S_SETPC_B64 $sgpr30_sgpr3140...41 42# All scratch registers are made unavailable so that the CSR SGPR pair used for EXEC copy needed spills at prolog and epilog.43 44---45name:            spill_exec_copy_reserved_reg46tracksRegLiveness: true47frameInfo:48  maxAlignment:    449machineFunctionInfo:50  isEntryFunction: false51  scratchRSrcReg:  '$sgpr0_sgpr1_sgpr2_sgpr3'52  stackPtrOffsetReg: '$sgpr32'53  frameOffsetReg: '$sgpr33'54  sgprForEXECCopy: '$sgpr34_sgpr35'55body:             |56  bb.0:57    liveins: $sgpr4, $sgpr5, $sgpr6, $sgpr7, $sgpr8, $sgpr9, $sgpr10, $sgpr11, $sgpr12, $sgpr13, $sgpr14, $sgpr15, $sgpr16, $sgpr17, $sgpr18, $sgpr19, $sgpr20, $sgpr21, $sgpr22, $sgpr23, $sgpr24, $sgpr25, $sgpr26, $sgpr27, $sgpr30_sgpr31, $vcc, $vgpr058    ; GCN-LABEL: name: spill_exec_copy_reserved_reg59    ; GCN: liveins: $sgpr4, $sgpr5, $sgpr6, $sgpr7, $sgpr8, $sgpr9, $sgpr10, $sgpr11, $sgpr12, $sgpr13, $sgpr14, $sgpr15, $sgpr16, $sgpr17, $sgpr18, $sgpr19, $sgpr20, $sgpr21, $sgpr22, $sgpr23, $sgpr24, $sgpr25, $sgpr26, $sgpr27, $sgpr30_sgpr31, $vcc, $vgpr060    ; GCN-NEXT: {{  $}}61    ; GCN-NEXT: $vgpr0 = SI_SPILL_S32_TO_VGPR $sgpr30, 0, killed $vgpr062    ; GCN-NEXT: $vgpr0 = SI_SPILL_S32_TO_VGPR $sgpr31, 1, killed $vgpr063    ; GCN-NEXT: $sgpr40_sgpr41 = S_OR_SAVEEXEC_B64 -1, implicit-def $exec, implicit-def dead $scc, implicit $exec64    ; GCN-NEXT: $sgpr28_sgpr29 = IMPLICIT_DEF65    ; GCN-NEXT: $vgpr1 = COPY $vgpr066    ; GCN-NEXT: S_NOP 0, implicit $sgpr28_sgpr2967    ; GCN-NEXT: $exec = S_MOV_B64 killed $sgpr40_sgpr4168    ; GCN-NEXT: $sgpr30 = SI_RESTORE_S32_FROM_VGPR $vgpr1, 069    ; GCN-NEXT: $sgpr31 = SI_RESTORE_S32_FROM_VGPR $vgpr1, 170    ; GCN-NEXT: S_SETPC_B64 $sgpr30_sgpr31, implicit $sgpr4, implicit $sgpr5, implicit $sgpr6, implicit $sgpr7, implicit $sgpr8_sgpr9_sgpr10, implicit $sgpr11, implicit $sgpr12, implicit $sgpr13, implicit $sgpr14, implicit $sgpr15, implicit $sgpr15, implicit $sgpr17, implicit $sgpr18, implicit $sgpr19, implicit $sgpr20, implicit $sgpr21, implicit $sgpr22, implicit $sgpr23, implicit $sgpr24, implicit $sgpr25, implicit $sgpr26, implicit $sgpr27, implicit $vcc71    $vgpr0 = SI_SPILL_S32_TO_VGPR $sgpr30, 0, killed $vgpr072    $vgpr0 = SI_SPILL_S32_TO_VGPR $sgpr31, 1, killed $vgpr073    $sgpr34_sgpr35 = S_OR_SAVEEXEC_B64 -1, implicit-def $exec, implicit-def dead $scc, implicit $exec74    $sgpr28_sgpr29 = IMPLICIT_DEF75    $vgpr1 = COPY $vgpr076    S_NOP 0, implicit $sgpr28_sgpr2977    $exec = S_MOV_B64 killed $sgpr34_sgpr3578    $sgpr30 = SI_RESTORE_S32_FROM_VGPR $vgpr1, 079    $sgpr31 = SI_RESTORE_S32_FROM_VGPR $vgpr1, 180    S_SETPC_B64 $sgpr30_sgpr31, implicit $sgpr4, implicit $sgpr5, implicit $sgpr6, implicit $sgpr7, implicit $sgpr8_sgpr9_sgpr10, implicit $sgpr11, implicit $sgpr12, implicit $sgpr13, implicit $sgpr14, implicit $sgpr15, implicit $sgpr15, implicit $sgpr17, implicit $sgpr18, implicit $sgpr19, implicit $sgpr20, implicit $sgpr21, implicit $sgpr22, implicit $sgpr23, implicit $sgpr24, implicit $sgpr25, implicit $sgpr26, implicit $sgpr27, implicit $vcc81...82