1 # REQUIRES: amdgpu-registered-target
2 # RUN: llvm-reduce -abort-on-invalid-reduction -mtriple=amdgcn-amd-amdhsa --delta-passes=instructions --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log
3 # RUN: FileCheck --match-full-lines --check-prefix=RESULT %s < %t
5 # CHECK-INTERESTINGNESS: S_NOP 0
7 # Make sure that register hints are preserved in the cloned function.
10 # RESULT-NEXT: - { id: 0, class: vgpr_32, preferred-register: '$vgpr0', flags: [ ] }
11 # RESULT-NEXT: - { id: 1, class: vgpr_32, preferred-register: '', flags: [ ] }
12 # RESULT-NEXT: - { id: 2, class: vgpr_32, preferred-register: '%1', flags: [ ] }
13 # RESULT-NEXT: - { id: 3, class: vgpr_32, preferred-register: '%4', flags: [ ] }
14 # RESULT-NEXT: - { id: 4, class: vgpr_32, preferred-register: '%3', flags: [ ] }
17 tracksRegLiveness: true
19 - { id: 0, class: vgpr_32, preferred-register: '$vgpr0' }
20 - { id: 1, class: vgpr_32, preferred-register: '' }
21 - { id: 2, class: vgpr_32, preferred-register: '%1' }
22 - { id: 3, class: vgpr_32, preferred-register: '%4' }
23 - { id: 4, class: vgpr_32, preferred-register: '%3' }
26 %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
27 %1:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
28 %2:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
29 %3:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
30 %4:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
32 S_ENDPGM 0, implicit %0, implicit %1, implicit %2, implicit %3, implicit %4