1 # RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -run-pass=legalizer -global-isel-abort=2 -pass-remarks-missed='gisel*' %s -o /dev/null 2>&1 | FileCheck -check-prefix=ERR %s
3 # Make sure there's no crash if there is somehow no successor block.
5 # ERR: remark: <unknown>:0:0: unable to legalize instruction: %3:_(s1), %4:_(s64) = G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.if), %2:_(s1) (in function: brcond_si_if_no_succ_block)
8 name: brcond_si_if_no_succ_block
15 liveins: $vgpr0, $vgpr1
16 %0:_(s32) = COPY $vgpr0
17 %1:_(s32) = COPY $vgpr1
18 %2:_(s1) = G_ICMP intpred(ne), %0, %1
19 %3:_(s1), %4:_(s64) = G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.if), %2