brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · fe2b482 Raw
40 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -sgpr-regalloc=fast -start-before=regallocfast,0 -stop-before=greedy -o - %s | FileCheck %s3 4# RegAllocFast was incorrectly dropping subregister indexes on5# unassigned virtual registers. Make sure they are passed through6# undisturbed to the second regalloc run.7 8---9name:            func10alignment:       111tracksRegLiveness: true12machineFunctionInfo:13  scratchRSrcReg:  '$sgpr96_sgpr97_sgpr98_sgpr99'14  stackPtrOffsetReg: '$sgpr32'15body:             |16  bb.0:17    liveins: $vgpr0, $vgpr1_vgpr218 19    ; CHECK-LABEL: name: func20    ; CHECK: liveins: $vgpr0, $vgpr1_vgpr221    ; CHECK-NEXT: {{  $}}22    ; CHECK-NEXT: undef [[COPY:%[0-9]+]].sub0:vreg_64 = COPY $vgpr023    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vreg_64 = COPY $vgpr1_vgpr224    ; CHECK-NEXT: undef [[V_MOV_B32_e32_:%[0-9]+]].sub1:vreg_64 = V_MOV_B32_e32 0, implicit $exec25    ; CHECK-NEXT: undef [[COPY]].sub0:vreg_64, renamable $sgpr0_sgpr1 = V_ADD_CO_U32_e64 1, [[COPY]].sub0, 0, implicit $exec26    ; CHECK-NEXT: undef [[V_MOV_B32_e32_]].sub1:vreg_64, dead renamable $sgpr0_sgpr1 = V_ADDC_U32_e64 0, [[V_MOV_B32_e32_]].sub1, killed $sgpr0_sgpr1, 0, implicit $exec27    ; CHECK-NEXT: [[GLOBAL_LOAD_DWORDX2_:%[0-9]+]]:vreg_64 = GLOBAL_LOAD_DWORDX2 [[COPY1]], 0, 0, implicit $exec28    ; CHECK-NEXT: $vgpr0 = V_MOV_B32_e32 [[GLOBAL_LOAD_DWORDX2_]].sub0, implicit $exec29    ; CHECK-NEXT: S_ENDPGM 0, implicit [[COPY]], implicit [[V_MOV_B32_e32_]], implicit $vgpr030    undef %0.sub0:vreg_64 = COPY $vgpr031    %2:vreg_64 = COPY $vgpr1_vgpr232    undef %1.sub1:vreg_64 = V_MOV_B32_e32 0, implicit $exec33    undef %0.sub0:vreg_64, %3:sreg_64_xexec = V_ADD_CO_U32_e64 1, %0.sub0, 0, implicit $exec34    undef %1.sub1:vreg_64, dead %4:sreg_64_xexec = V_ADDC_U32_e64 0, %1.sub1, %3, 0, implicit $exec35    %5:vreg_64 = GLOBAL_LOAD_DWORDX2 %2, 0, 0, implicit $exec36    $vgpr0 = V_MOV_B32_e32 %5.sub0, implicit $exec37    S_ENDPGM 0, implicit %0, implicit %1, implicit $vgpr038 39...40