1 # RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass=si-fold-operands,dead-mi-elimination %s -o - | FileCheck -check-prefix=GCN %s
3 # GCN-LABEL: name: fold_vgpr_copy
4 # GCN: %0:vreg_64 = IMPLICIT_DEF
5 # GCN-NEXT: %4:vgpr_32 = IMPLICIT_DEF
6 # GCN-NEXT: %3:vgpr_32 = IMPLICIT_DEF
7 # GCN-NEXT: DS_WRITE2_B32_gfx9 %0.sub0, killed %4, killed %3, 0, 1, 0, implicit $exec
12 - { id: 0, class: vreg_64 }
13 - { id: 1, class: vgpr_32 }
14 - { id: 2, class: vgpr_32 }
15 - { id: 3, class: vgpr_32 }
16 - { id: 4, class: vgpr_32 }
20 %0:vreg_64 = IMPLICIT_DEF
23 %1:vgpr_32 = COPY %0.sub0
25 DS_WRITE2_B32_gfx9 %2, killed %4, killed %3, 0, 1, 0, implicit $exec