Compiler projects using llvm
# REQUIRES: amdgpu-registered-target
# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=none -o /dev/null %s 2>&1 | FileCheck %s

---
name: undef_reg_def
tracksRegLiveness: true
body:             |
  bb.0:
    ; CHECK: *** Bad machine code: Undef virtual register def operands require a subregister ***
    undef %0:sreg_64 = S_MOV_B64 0

    ; CHECK: *** Bad machine code: Undef virtual register def operands require a subregister ***
    S_NOP 0, implicit-def undef %1:sreg_64
    S_ENDPGM 0, implicit %0.sub0, implicit %0.sub1

...