• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3
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
6---
7name:           sgpr_reuse_2sgpr
8liveins:
9  - { reg: '$sgpr0_sgpr1', virtual-reg: '' }
10body:            |
11  bb.0:
12    liveins: $sgpr0_sgpr1
13    $vgpr0 = V_CNDMASK_B32_e64 0, $sgpr0, 0, -1, killed $sgpr0_sgpr1, implicit $exec
14...
15
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
18---
19name:           sgpr_reuse_3sgpr
20liveins:
21  - { reg: '$sgpr0_sgpr1', virtual-reg: '' }
22  - { reg: '$sgpr2', virtual-reg: '' }
23body:            |
24  bb.0:
25    liveins: $sgpr0_sgpr1, $sgpr2
26    $vgpr0 = V_CNDMASK_B32_e64 0, $sgpr0, 0, $sgpr2, killed $sgpr0_sgpr1, implicit $exec
27...
28