1 # RUN: not --crash llc -march=amdgcn -mcpu=gfx900 -run-pass machineverifier -o /dev/null %s 2>&1 | FileCheck -check-prefix=GFX9-ERR %s
2 # RUN: not --crash llc -march=amdgcn -mcpu=gfx1010 -mattr=-wavefrontsize32,+wavefrontsize64 -run-pass machineverifier -o /dev/null %s 2>&1 | FileCheck -check-prefix=GFX10-ERR %s
4 # GFX9-ERR: *** Bad machine code: VOP* instruction violates constant bus restriction ***
5 # GFX9-ERR: $vgpr0 = V_CNDMASK_B32_e64 0, $sgpr0, 0, -1, killed $sgpr0_sgpr1, implicit $exec
9 - { reg: '$sgpr0_sgpr1', virtual-reg: '' }
13 $vgpr0 = V_CNDMASK_B32_e64 0, $sgpr0, 0, -1, killed $sgpr0_sgpr1, implicit $exec
16 # GFX10-ERR: *** Bad machine code: VOP* instruction violates constant bus restriction ***
17 # GFX10-ERR: $vgpr0 = V_CNDMASK_B32_e64 0, $sgpr0, 0, $sgpr2, killed $sgpr0_sgpr1, implicit $exec
19 name: sgpr_reuse_3sgpr
21 - { reg: '$sgpr0_sgpr1', virtual-reg: '' }
22 - { reg: '$sgpr2', virtual-reg: '' }
25 liveins: $sgpr0_sgpr1, $sgpr2
26 $vgpr0 = V_CNDMASK_B32_e64 0, $sgpr0, 0, $sgpr2, killed $sgpr0_sgpr1, implicit $exec