1# RUN: not llc -march=amdgcn -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
2---
3name: empty_scratch_rsrc_reg
4machineFunctionInfo:
5  scratchRSrcReg:  ''
6# CHECK: :[[@LINE-1]]:{{[0-9]+}}: expected a named register
7body:             |
8  bb.0:
9
10    S_ENDPGM
11...
12