blob: d40fb7bde069c594010d1c79cf30f4f922f14d40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=greedy -verify-machineinstrs -filetype=null %s 2>&1 | FileCheck --implicit-check-not=error %s
# Check that there isn't an assert if we try to allocate a virtual register from
# a class where all registers are reserved. All AGPRs are reserved on subtargets
# that do not have them.
# CHECK: error: <unknown>:0:0: no registers from class available to allocate in function 'use_agpr'
---
name: use_agpr
tracksRegLiveness: true
body: |
bb.0:
%0:agpr_32 = IMPLICIT_DEF
S_ENDPGM 0, implicit %0
...
|