blob: e7c1740711952e5ae94ef79b5f4c81e28a7b2701 [file]
# RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx950 -run-pass=none -filetype=null %s 2>&1 | FileCheck %s
---
# CHECK: error: {{.*}} incorrect register class for field
name: kernarg_preload_wrong_register_class
tracksRegLiveness: true
machineFunctionInfo:
explicitKernArgSize: 4
maxKernArgAlign: 4
numKernargPreloadSGPRs: 1
isEntryFunction: true
argumentInfo:
kernargSegmentPtr: { reg: '$sgpr0_sgpr1' }
firstKernArgPreloadReg: { reg: '$vgpr0' } # ERROR: VGPR instead of SGPR
body: |
bb.0:
S_ENDPGM 0
...