brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 168d63d Raw
34 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx906 -verify-machineinstrs -run-pass=prologepilog -o - %s | FileCheck -check-prefix=GCN %s3 4# The scratch register vgpr0 is used here to spill sgpr35 register.5# The function also returns a value that goes via. vgpr0.6# This test is to ensure the vgpr0 store/restore inserted at the prolog/epilog7# preserves only its inactive lanes to ensure the outgoing value will not be overwritten.8 9---10name: preserve_scratch_vgpr_inactive_lanes11tracksRegLiveness: true12machineFunctionInfo:13  scratchRSrcReg:  $sgpr0_sgpr1_sgpr2_sgpr314  frameOffsetReg:  $sgpr3315  stackPtrOffsetReg:  $sgpr3216 17body:             |18  bb.0:19    liveins: $sgpr35, $vgpr0, $sgpr30_sgpr3120    ; GCN-LABEL: name: preserve_scratch_vgpr_inactive_lanes21    ; GCN: liveins: $sgpr35, $vgpr0, $sgpr30_sgpr3122    ; GCN-NEXT: {{  $}}23    ; GCN-NEXT: $vgpr0 = SI_SPILL_S32_TO_VGPR $sgpr35, 0, killed $vgpr024    ; GCN-NEXT: $sgpr35 = S_MOV_B32 525    ; GCN-NEXT: $sgpr35 = SI_RESTORE_S32_FROM_VGPR $vgpr0, 026    ; GCN-NEXT: renamable $vgpr0 = V_MOV_B32_e32 10, implicit $exec27    ; GCN-NEXT: S_SETPC_B64_return killed renamable $sgpr30_sgpr31, implicit $vgpr028    renamable $vgpr0 = SI_SPILL_S32_TO_VGPR $sgpr35, 0, killed $vgpr029    $sgpr35 = S_MOV_B32 530    $sgpr35 = SI_RESTORE_S32_FROM_VGPR $vgpr0, 031    renamable $vgpr0 = V_MOV_B32_e32 10, implicit $exec32    S_SETPC_B64_return killed renamable $sgpr30_sgpr31, implicit $vgpr033...34