1# RUN: llc -mtriple=amdgcn-- -run-pass=print-machine-uniformity -o - %s 2>&1 | FileCheck %s 2 3# This test was generated using SelectionDAG, where the compilation flow does 4# not match the assumptions made in MachineUA. For now, this test mostly serves 5# the purpose of catching in any crash when invoking MachineUA. The test should 6# be deleted when it is clear that it is not actually testing anything useful. 7 8# CHECK-LABEL: MachineUniformityInfo for function: irreducible 9 10--- 11name: irreducible 12tracksRegLiveness: true 13machineFunctionInfo: 14 isEntryFunction: true 15body: | 16 bb.0: 17 successors: %bb.1, %bb.2 18 liveins: $vgpr0, $vgpr1, $vgpr2, $sgpr4_sgpr5, $sgpr6_sgpr7, $sgpr8_sgpr9, $sgpr10_sgpr11, $sgpr14, $sgpr15, $sgpr16 19 20 %0:sreg_32 = IMPLICIT_DEF 21 %2:vgpr_32 = COPY $vgpr0 22 %3:vgpr_32 = V_MOV_B32_e32 0, implicit $exec 23 S_CMP_EQ_U32 %0, 0, implicit-def $scc 24 S_CBRANCH_SCC1 %bb.1, implicit $scc 25 S_BRANCH %bb.2 26 27 bb.1: 28 %28:vgpr_32 = PHI %3, %bb.0, %49, %bb.5 29 %29:vgpr_32 = V_ADD_U32_e64 %28, 1, 0, implicit $exec 30 S_BRANCH %bb.3 31 32 bb.2: 33 %38:vgpr_32 = PHI %3, %bb.0, %49, %bb.4 34 %39:vgpr_32 = V_ADD_U32_e64 %38, 2, 0, implicit $exec 35 36 bb.3: 37 %49:vgpr_32 = PHI %29, %bb.1, %39, %bb.2 38 39 bb.4: 40 successors: %bb.2, %bb.5 41 42 %50:vgpr_32 = V_AND_B32_e32 3, %2, implicit $exec 43 %51:sreg_64 = V_CMP_EQ_U32_e64 %50, 2, implicit $exec 44 %52:sreg_64 = SI_IF killed %51:sreg_64, %bb.2, implicit-def dead $exec, implicit-def dead $scc, implicit $exec 45 46 bb.5: 47 successors: %bb.1, %bb.6 48 %61:sreg_64 = V_CMP_EQ_U32_e64 %50, 1, implicit $exec 49 %62:sreg_64 = SI_IF killed %61:sreg_64, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec 50 51 bb.6: 52 S_ENDPGM 0 53... 54