123 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52# RUN: llc -mtriple=amdgcn--amdhsa -mcpu=gfx900 -amdgpu-disable-unclustered-high-rp-reschedule -verify-misched -start-before=machine-scheduler -stop-after=virtregrewriter,2 -o - %s | FileCheck -check-prefix=GCN %s3# RUN: llc -mtriple=amdgcn--amdhsa -mcpu=gfx900 -amdgpu-disable-unclustered-high-rp-reschedule -amdgpu-use-amdgpu-trackers=1 -verify-misched -start-before=machine-scheduler -stop-after=virtregrewriter,2 -o - %s | FileCheck -check-prefix=GCN-GCNTRACKER %s4 5# Check that %3 was not rematerialized before the last store since its operand %16# is killed by that store.7 8# GCN-LABEL: name: global_sextload_v32i32_to_v32i649# GCN: renamable $vgpr34_vgpr35_vgpr36_vgpr37 = SI_SPILL_V128_RESTORE %stack.0, $sgpr32, 0, implicit $exec :: (load (s128) from %stack.0, align 4, addrspace 5)10# GCN: GLOBAL_STORE_DWORDX4_SADDR killed renamable $vgpr5, killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $sgpr0_sgpr1, 16, 0, implicit $exec, implicit killed renamable $vgpr411 12# GCN-GCNTRACKER-LABEL: name: global_sextload_v32i32_to_v32i6413# GCN-GCNTRACKER-NOT: SI_SPILL14 15---16name: global_sextload_v32i32_to_v32i6417tracksRegLiveness: true18machineFunctionInfo:19 scratchRSrcReg: '$sgpr96_sgpr97_sgpr98_sgpr99'20 stackPtrOffsetReg: '$sgpr32'21body: |22 bb.0:23 liveins: $sgpr4_sgpr524 25 %0:sgpr_64(p4) = COPY $sgpr4_sgpr526 %1:vgpr_32 = COPY $m027 %2:sgpr_128 = S_LOAD_DWORDX4_IMM %0(p4), 0, 028 %3:vgpr_32 = V_MOV_B32_e32 %1, implicit $exec29 %4:vreg_128 = GLOBAL_LOAD_DWORDX4_SADDR %2.sub2_sub3, %3, 112, 0, implicit $exec :: (load (s128))30 %5:vreg_128 = GLOBAL_LOAD_DWORDX4_SADDR %2.sub2_sub3, %3, 96, 0, implicit $exec, implicit %1 :: (load (s128))31 %6:vreg_128 = GLOBAL_LOAD_DWORDX4_SADDR %2.sub2_sub3, %3, 80, 0, implicit $exec :: (load (s128))32 %7:vreg_128 = GLOBAL_LOAD_DWORDX4_SADDR %2.sub2_sub3, %3, 64, 0, implicit $exec :: (load (s128))33 %8:vreg_128 = GLOBAL_LOAD_DWORDX4_SADDR %2.sub2_sub3, %3, 48, 0, implicit $exec :: (load (s128))34 %9:vreg_128 = GLOBAL_LOAD_DWORDX4_SADDR %2.sub2_sub3, %3, 32, 0, implicit $exec :: (load (s128))35 %10:vreg_128 = GLOBAL_LOAD_DWORDX4_SADDR %2.sub2_sub3, %3, 16, 0, implicit $exec :: (load (s128))36 %11:vreg_128 = GLOBAL_LOAD_DWORDX4_SADDR %2.sub2_sub3, %3, 0, 0, implicit $exec :: (load (s128))37 undef %12.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %11.sub3, implicit $exec38 %12.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %11.sub2, implicit $exec39 undef %13.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %11.sub1, implicit $exec40 %13.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %11.sub0, implicit $exec41 undef %14.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %10.sub3, implicit $exec42 %14.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %10.sub2, implicit $exec43 undef %15.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %10.sub1, implicit $exec44 %15.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %10.sub0, implicit $exec45 undef %16.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %9.sub3, implicit $exec46 %16.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %9.sub2, implicit $exec47 undef %17.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %9.sub1, implicit $exec48 %17.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %9.sub0, implicit $exec49 undef %18.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %8.sub3, implicit $exec50 %18.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %8.sub2, implicit $exec51 undef %19.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %8.sub1, implicit $exec52 %19.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %8.sub0, implicit $exec53 undef %20.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %7.sub3, implicit $exec54 %20.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %7.sub2, implicit $exec55 undef %21.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %7.sub1, implicit $exec56 %21.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %7.sub0, implicit $exec57 undef %22.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %6.sub3, implicit $exec58 %22.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %6.sub2, implicit $exec59 undef %23.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %6.sub1, implicit $exec60 %23.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %6.sub0, implicit $exec61 undef %24.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %5.sub3, implicit $exec62 %24.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %5.sub2, implicit $exec63 undef %25.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %5.sub1, implicit $exec64 %25.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %5.sub0, implicit $exec65 undef %26.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %4.sub3, implicit $exec66 %26.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %4.sub2, implicit $exec67 undef %27.sub3:vreg_128 = V_ASHRREV_I32_e32 31, %4.sub1, implicit $exec68 %27.sub1:vreg_128 = V_ASHRREV_I32_e32 31, %4.sub0, implicit $exec69 %27.sub0:vreg_128 = COPY %4.sub070 %27.sub2:vreg_128 = COPY %4.sub171 GLOBAL_STORE_DWORDX4_SADDR %3, %27, %2.sub0_sub1, 224, 0, implicit $exec72 %26.sub0:vreg_128 = COPY %4.sub273 %26.sub2:vreg_128 = COPY %4.sub374 GLOBAL_STORE_DWORDX4_SADDR %3, %26, %2.sub0_sub1, 240, 0, implicit $exec75 %25.sub0:vreg_128 = COPY %5.sub076 %25.sub2:vreg_128 = COPY %5.sub177 GLOBAL_STORE_DWORDX4_SADDR %3, %25, %2.sub0_sub1, 192, 0, implicit $exec78 %24.sub0:vreg_128 = COPY %5.sub279 %24.sub2:vreg_128 = COPY %5.sub380 GLOBAL_STORE_DWORDX4_SADDR %3, %24, %2.sub0_sub1, 208, 0, implicit $exec81 %23.sub0:vreg_128 = COPY %6.sub082 %23.sub2:vreg_128 = COPY %6.sub183 GLOBAL_STORE_DWORDX4_SADDR %3, %23, %2.sub0_sub1, 160, 0, implicit $exec84 %22.sub0:vreg_128 = COPY %6.sub285 %22.sub2:vreg_128 = COPY %6.sub386 GLOBAL_STORE_DWORDX4_SADDR %3, %22, %2.sub0_sub1, 176, 0, implicit $exec87 %21.sub0:vreg_128 = COPY %7.sub088 %21.sub2:vreg_128 = COPY %7.sub189 GLOBAL_STORE_DWORDX4_SADDR %3, %21, %2.sub0_sub1, 128, 0, implicit $exec90 %20.sub0:vreg_128 = COPY %7.sub291 %20.sub2:vreg_128 = COPY %7.sub392 GLOBAL_STORE_DWORDX4_SADDR %3, %20, %2.sub0_sub1, 144, 0, implicit $exec93 %19.sub0:vreg_128 = COPY %8.sub094 %19.sub2:vreg_128 = COPY %8.sub195 GLOBAL_STORE_DWORDX4_SADDR %3, %19, %2.sub0_sub1, 96, 0, implicit $exec96 %18.sub0:vreg_128 = COPY %8.sub297 %18.sub2:vreg_128 = COPY %8.sub398 GLOBAL_STORE_DWORDX4_SADDR %3, %18, %2.sub0_sub1, 112, 0, implicit $exec99 %17.sub0:vreg_128 = COPY %9.sub0100 %17.sub2:vreg_128 = COPY %9.sub1101 GLOBAL_STORE_DWORDX4_SADDR %3, %17, %2.sub0_sub1, 64, 0, implicit $exec102 %16.sub0:vreg_128 = COPY %9.sub2103 %16.sub2:vreg_128 = COPY %9.sub3104 GLOBAL_STORE_DWORDX4_SADDR %3, %16, %2.sub0_sub1, 80, 0, implicit $exec105 %15.sub0:vreg_128 = COPY %10.sub0106 %15.sub2:vreg_128 = COPY %10.sub1107 GLOBAL_STORE_DWORDX4_SADDR %3, %15, %2.sub0_sub1, 32, 0, implicit $exec108 %14.sub0:vreg_128 = COPY %10.sub2109 %14.sub2:vreg_128 = COPY %10.sub3110 GLOBAL_STORE_DWORDX4_SADDR %3, %14, %2.sub0_sub1, 48, 0, implicit $exec111 %13.sub0:vreg_128 = COPY %11.sub0112 %13.sub2:vreg_128 = COPY %11.sub1113 GLOBAL_STORE_DWORDX4_SADDR %3, %13, %2.sub0_sub1, 0, 0, implicit $exec114 %12.sub0:vreg_128 = COPY %11.sub2115 %12.sub2:vreg_128 = COPY %11.sub3116 GLOBAL_STORE_DWORDX4_SADDR %3, %12, %2.sub0_sub1, 16, 0, implicit $exec, implicit killed %1117 S_ENDPGM 0118 119...120## NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:121# GCN: {{.*}}122# GCN-GCNTRACKER: {{.*}}123