• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
2
3# Make sure there's no crash if there is somehow no successor block.
4
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)
6
7---
8name: brcond_si_if_no_succ_block
9body:             |
10  bb.0:
11    S_NOP 0
12
13  bb.1:
14    successors: %bb.1
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
20    G_BRCOND %3, %bb.1
21...
22