llvm/llvm/test/MachineVerifier/AMDGPU/undef-virt-reg-nonentry-block.mir

# FIXME: This should fail the verifier
# XFAIL: *
# RUN: not --crash llc -o - -mtriple=amdgcn-amd-amdhsa -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s

# CHECK: *** Bad machine code: Virtual register defs don't dominate all uses. ***

---
name:            undef_virtreg
body:             |
  bb.0:

  bb.1:
    %0:sreg_32 = S_AND_B32 1, %1:sreg_32, implicit-def dead $scc
    S_ENDPGM 0, implicit %1

...