1 # RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=greedy -verify-machineinstrs -o /dev/null %s 2>&1 | FileCheck %s
3 # Check that there isn't an assert if we try to allocate a virtual register from
4 # a class where all registers are reserved. All AGPRs are reserved on subtargets
5 # that do not have them.
7 # CHECK-NOT: ran out of registers during register allocation
8 # CHECK: LLVM ERROR: no registers from class available to allocate
9 # CHECK-NOT: ran out of registers during register allocation
13 tracksRegLiveness: true
16 %0:agpr_32 = IMPLICIT_DEF
17 S_ENDPGM 0, implicit %0