1 # REQUIRES: amdgpu-registered-target
2 # RUN: llvm-reduce -abort-on-invalid-reduction -simplify-mir --delta-passes=register-hints -mtriple=amdgcn-amd-amdhsa --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log
3 # RUN: FileCheck --check-prefix=RESULT %s < %t
5 # CHECK-INTERESTINGNESS: - { id: 0, class: vgpr_32, preferred-register: '$vgpr0' }
6 # CHECK-INTERESTINGNESS: - { id: 2, class: vgpr_32, preferred-register: '%1' }
7 # CHECK-INTERESTINGNESS-COUNT-5: V_MOV_B32
10 # RESULT-NEXT: - { id: 0, class: vgpr_32, preferred-register: '$vgpr0' }
11 # RESULT-NEXT: - { id: 1, class: vgpr_32 }
12 # RESULT-NEXT: - { id: 2, class: vgpr_32, preferred-register: '%1' }
13 # RESULT-NEXT: - { id: 3, class: vgpr_32 }
14 # RESULT-NEXT: - { id: 4, class: vgpr_32 }
18 tracksRegLiveness: true
20 - { id: 0, class: vgpr_32, preferred-register: '$vgpr0' }
21 - { id: 1, class: vgpr_32, preferred-register: '' }
22 - { id: 2, class: vgpr_32, preferred-register: '%1' }
23 - { id: 3, class: vgpr_32, preferred-register: '%4' }
24 - { id: 4, class: vgpr_32, preferred-register: '%3' }
27 liveins: $vgpr0, $vgpr1
30 %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
31 %1:vgpr_32 = V_MOV_B32_e32 1, implicit $exec
32 %2:vgpr_32 = V_MOV_B32_e32 2, implicit $exec
33 %3:vgpr_32 = V_MOV_B32_e32 3, implicit $exec
34 %4:vgpr_32 = V_MOV_B32_e32 4, implicit $exec
36 S_ENDPGM 0, implicit %0, implicit %1, implicit %2, implicit %3, implicit %4