brintos

brintos / llvm-project-archived public Read only

0
0
Text · 784 B · 4e8ab89 Raw
22 lines · plain
1# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -run-pass=legalizer -global-isel-abort=2 -pass-remarks-missed='gisel*' %s -filetype=null 2>&1 | FileCheck -check-prefix=ERR %s2 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_block9body:             |10  bb.0:11    S_NOP 012 13  bb.1:14    successors: %bb.115    liveins: $vgpr0, $vgpr116    %0:_(s32) = COPY $vgpr017    %1:_(s32) = COPY $vgpr118    %2:_(s1) = G_ICMP intpred(ne), %0, %119    %3:_(s1), %4:_(s64) = G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.if), %220    G_BRCOND %3, %bb.121...22