brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · e1295d4 Raw
47 lines · plain
1# RUN: llc -mtriple=amdgcn -mcpu=gfx900 -run-pass=si-fold-operands,dead-mi-elimination -verify-machineinstrs %s -o - | FileCheck -check-prefix=GCN %s2 3---4 5# GCN-LABEL: name: fold_sgpr_to_sgpr_copy_full6# GCN:      %0:sgpr_32 = IMPLICIT_DEF7# GCN-NEXT: S_STORE_DWORD_IMM %0, undef $sgpr10_sgpr11, 0, 08 9name:            fold_sgpr_to_sgpr_copy_full10body:             |11  bb.0:12 13    %0:sgpr_32 = IMPLICIT_DEF14    %1:sgpr_32 = COPY %015    %2:sgpr_32 = COPY %116    S_STORE_DWORD_IMM %2, undef $sgpr10_sgpr11, 0, 017...18 19# GCN-LABEL: name: fold_sgpr_to_sgpr_copy_subreg20# GCN:      %0:sreg_64_xexec = IMPLICIT_DEF21# GCN-NEXT: S_STORE_DWORD_IMM %0.sub0, undef $sgpr10_sgpr11, 0, 022 23name:            fold_sgpr_to_sgpr_copy_subreg24body:             |25  bb.0:26 27    %0:sreg_64 = IMPLICIT_DEF28    %1:sgpr_32 = COPY %0.sub029    %2:sgpr_32 = COPY %130    S_STORE_DWORD_IMM %2, undef $sgpr10_sgpr11, 0, 031...32 33# GCN-LABEL: name: fold_sgpr_to_sgpr_copy_subreg234# GCN:      %0:sreg_64_xexec = IMPLICIT_DEF35# GCN-NEXT: S_STORE_DWORD_IMM %0.sub0, undef $sgpr10_sgpr11, 0, 036 37name:            fold_sgpr_to_sgpr_copy_subreg238body:             |39  bb.0:40 41    %0:sreg_64 = IMPLICIT_DEF42    %1:sgpr_32 = COPY %0.sub043    %2:sgpr_32 = COPY %144    %3:sreg_32_xm0_xexec = COPY %245    S_STORE_DWORD_IMM %3, undef $sgpr10_sgpr11, 0, 046...47