76 lines · plain
1# RUN: llc -mtriple=amdgcn-- -run-pass=print-machine-uniformity -o - %s 2>&1 | FileCheck %s2# RUN: llc -mtriple=amdgcn-- -passes='print<machine-uniformity>' -filetype=null %s 2>&1 | FileCheck %s3 4# This test was generated using SelectionDAG, where the compilation flow does5# not match the assumptions made in MachineUA. For now, this test mostly serves6# the purpose of catching in any crash when invoking MachineUA. The test should7# be deleted when it is clear that it is not actually testing anything useful.8 9---10# CHECK-LABEL: MachineUniformityInfo for function: @hidden_diverge11# CHECK-LABEL: BLOCK bb.012# CHECK: DIVERGENT: %{{[0-9]*}}: %{{[0-9]*}}:vgpr_32(s32) = COPY $vgpr013# CHECK-LABEL: BLOCK bb.214# CHECK: DIVERGENT: %{{[0-9]*}}: %{{[0-9]*}}:vreg_1 = PHI %{{[0-9]*}}:vreg_1, %bb.0, %{{[0-9]*}}:sreg_64, %bb.115# CHECK-LABEL: BLOCK bb.316# CHECK-LABEL: BLOCK bb.417 18name: hidden_diverge19tracksRegLiveness: true20body: |21 bb.0:22 successors: %bb.1(0x40000000), %bb.2(0x40000000)23 liveins: $vgpr0, $sgpr0_sgpr124 25 %11:sgpr_64(p4) = COPY $sgpr0_sgpr126 %10:vgpr_32(s32) = COPY $vgpr027 %15:sreg_64_xexec = S_LOAD_DWORDX2_IMM %11(p4), 36, 028 %16:sreg_32_xm0_xexec = S_LOAD_DWORD_IMM %11(p4), 44, 029 %17:sreg_32 = COPY %15.sub130 %18:sreg_32 = COPY %15.sub031 %19:sgpr_96 = REG_SEQUENCE killed %18, %subreg.sub0, killed %17, %subreg.sub1, killed %16, %subreg.sub232 %0:sgpr_96 = COPY %1933 %20:sreg_32 = S_MOV_B32 -134 %21:sreg_64 = V_CMP_GT_I32_e64 %10(s32), killed %20, implicit $exec35 %22:sreg_32 = S_MOV_B32 036 %23:sreg_64 = V_CMP_LT_I32_e64 %10(s32), killed %22, implicit $exec37 %1:vreg_1 = COPY %2138 %14:sreg_32 = IMPLICIT_DEF39 %2:sreg_64 = SI_IF killed %23, %bb.2, implicit-def dead $exec, implicit-def dead $scc, implicit $exec40 S_BRANCH %bb.141 42 bb.1:43 successors: %bb.2(0x80000000)44 45 %24:sreg_32 = COPY %0.sub046 %3:sreg_32 = COPY %0.sub147 %25:sreg_32 = S_MOV_B32 048 S_CMP_LT_I32 killed %24, killed %25, implicit-def $scc49 %26:sreg_64 = COPY $scc50 %4:sreg_64 = COPY %2651 52 bb.2:53 successors: %bb.3(0x40000000), %bb.4(0x40000000)54 55 %5:sreg_32 = PHI %14, %bb.0, %3, %bb.156 %6:vreg_1 = PHI %1, %bb.0, %4, %bb.157 SI_END_CF %2, implicit-def dead $exec, implicit-def dead $scc, implicit $exec58 %27:sreg_64 = COPY %659 %7:sreg_64 = SI_IF %27, %bb.4, implicit-def dead $exec, implicit-def dead $scc, implicit $exec60 S_BRANCH %bb.361 62 bb.3:63 successors: %bb.4(0x80000000)64 65 %8:sreg_32 = COPY %0.sub266 67 bb.4:68 %9:vgpr_32 = PHI %5, %bb.2, %8, %bb.369 SI_END_CF %7, implicit-def dead $exec, implicit-def dead $scc, implicit $exec70 %28:sreg_64 = IMPLICIT_DEF71 %29:vreg_64 = COPY %2872 GLOBAL_STORE_DWORD killed %29, %9, 0, 0, implicit $exec73 S_ENDPGM 074 75...76