| # RUN: not llc -mtriple=amdgpu11.00 -run-pass=virtregmap \ |
| # RUN: -filetype=null %s 2>&1 | FileCheck %s |
| # |
| # 'assigned-phys' must be a physical register; passing a vreg should error. |
| |
| # CHECK: 'assigned-phys' must be a physical register, got '%0' |
| --- |
| name: bad_phys |
| tracksRegLiveness: true |
| registers: |
| - { id: 0, class: vgpr_32 } |
| - { id: 1, class: vgpr_32, assigned-phys: '%0' } |
| body: | |
| bb.0: |
| %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec |
| %1:vgpr_32 = V_MOV_B32_e32 1, implicit $exec |
| S_ENDPGM 0, implicit %0, implicit %1 |
| ... |