1# RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass=si-fold-operands,dead-mi-elimination -verify-machineinstrs %s -o - | FileCheck -check-prefix=GCN %s 2 3--- 4 5# GCN-LABEL: name: fold_sgpr_to_sgpr_copy_full 6# GCN: %0:sgpr_32 = IMPLICIT_DEF 7# GCN-NEXT: S_STORE_DWORD_IMM %0, undef $sgpr10_sgpr11, 0, 0, 0 8 9name: fold_sgpr_to_sgpr_copy_full 10body: | 11 bb.0: 12 13 %0:sgpr_32 = IMPLICIT_DEF 14 %1:sgpr_32 = COPY %0 15 %2:sgpr_32 = COPY %1 16 S_STORE_DWORD_IMM %2, undef $sgpr10_sgpr11, 0, 0, 0 17... 18 19# GCN-LABEL: name: fold_sgpr_to_sgpr_copy_subreg 20# GCN: %0:sreg_64 = IMPLICIT_DEF 21# GCN-NEXT: %2:sgpr_32 = COPY %0.sub0 22# GCN-NEXT: S_STORE_DWORD_IMM %2, undef $sgpr10_sgpr11, 0, 0, 0 23 24name: fold_sgpr_to_sgpr_copy_subreg 25body: | 26 bb.0: 27 28 %0:sreg_64 = IMPLICIT_DEF 29 %1:sgpr_32 = COPY %0.sub0 30 %2:sgpr_32 = COPY %1 31 S_STORE_DWORD_IMM %2, undef $sgpr10_sgpr11, 0, 0, 0 32... 33 34# GCN-LABEL: name: fold_sgpr_to_sgpr_copy_subreg2 35# GCN: %0:sreg_64 = IMPLICIT_DEF 36# GCN-NEXT: %3:sreg_32_xm0_xexec = COPY %0.sub0 37# GCN-NEXT: S_STORE_DWORD_IMM %3, undef $sgpr10_sgpr11, 0, 0, 0 38 39name: fold_sgpr_to_sgpr_copy_subreg2 40body: | 41 bb.0: 42 43 %0:sreg_64 = IMPLICIT_DEF 44 %1:sgpr_32 = COPY %0.sub0 45 %2:sgpr_32 = COPY %1 46 %3:sreg_32_xm0_xexec = COPY %2 47 S_STORE_DWORD_IMM %3, undef $sgpr10_sgpr11, 0, 0, 0 48... 49