44 lines · plain
1# REQUIRES: amdgpu-registered-target2# RUN: llvm-reduce -abort-on-invalid-reduction -simplify-mir -mtriple=amdgcn-amd-amdhsa --delta-passes=instructions --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log3# RUN: FileCheck --check-prefix=RESULT %s < %t4 5# Make sure there's no crash with unreachable blocks.6 7# CHECK-INTERESTINGNESS: S_NOP8 9# RESULT: bb.0:10 11# RESULT: %{{[0-9]+}}:vgpr_32 = IMPLICIT_DEF12# RESULT-NEXT: %{{[0-9]+}}:sreg_64 = IMPLICIT_DEF13# RESULT-NEXT: %{{[0-9]+}}:vreg_64 = IMPLICIT_DEF14# RESULT-NEXT: S_CBRANCH_SCC1 %bb.1, implicit undef $scc15# RESULT-NEXT: S_BRANCH %bb.316 17# RESULT: bb.1:18# RESULT-NEXT: S_BRANCH %bb.319 20# RESULT: bb.2:21# RESULT-NEXT: S_NOP 0, implicit %{{[0-9]+}}, implicit killed %{{[0-9]+}}, implicit %{{[0-9]+}}22 23---24name: unreachable_block25tracksRegLiveness: true26body: |27 bb.0:28 %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec29 S_CBRANCH_SCC1 %bb.1, implicit undef $scc30 S_BRANCH %bb.331 32 bb.1:33 %1:sreg_64 = S_MOV_B64 034 S_BRANCH %bb.335 36 bb.2:37 %2:vreg_64 = IMPLICIT_DEF38 S_NOP 0, implicit %0, implicit killed %2, implicit %139 S_BRANCH %bb.340 41 bb.3:42 43...44