1# RUN: llc -march=amdgcn -mcpu=gfx908 -start-before postrapseudos -asm-verbose=0 -verify-machineinstrs %s -o - | FileCheck -check-prefix=GCN %s 2 3# GCN-LABEL: {{^}}lo_to_lo_agpr_to_agpr: 4# GCN: v_accvgpr_read_b32 [[TMP:v[0-9]+]], a0 5# GCN-NEXT: s_nop 1 6# GCN-NEXT: v_accvgpr_write_b32 a1, [[TMP]] 7name: lo_to_lo_agpr_to_agpr 8tracksRegLiveness: true 9body: | 10 bb.0: 11 $agpr0 = IMPLICIT_DEF 12 $agpr1_lo16 = COPY $agpr0_lo16 13 S_ENDPGM 0 14... 15 16# GCN-LABEL: {{^}}lo_to_lo_samereg: 17# GCN: s_waitcnt 18# GCN-NEXT: s_endpgm 19name: lo_to_lo_samereg 20tracksRegLiveness: true 21body: | 22 bb.0: 23 $agpr0 = IMPLICIT_DEF 24 $agpr0_lo16 = COPY $agpr0_lo16 25 S_ENDPGM 0 26... 27 28# GCN-LABEL: {{^}}lo_to_lo_undef_agpr_to_agpr: 29# GCN: v_accvgpr_read_b32 [[TMP:v[0-9]+]], a1 30# GCN-NEXT: s_nop 1 31# GCN-NEXT: v_accvgpr_write_b32 a2, [[TMP]] 32name: lo_to_lo_undef_agpr_to_agpr 33tracksRegLiveness: true 34body: | 35 bb.0: 36 $agpr1_lo16 = COPY undef $agpr0_lo16 37 $agpr2 = COPY killed $agpr1 38 S_ENDPGM 0 39... 40 41# GCN-LABEL: {{^}}lo_to_lo_sgpr_to_agpr: 42# GCN: v_mov_b32_e32 [[TMP:v[0-9]+]], s0 43# GCN-NEXT: s_nop 1 44# GCN-NEXT: v_accvgpr_write_b32 a1, [[TMP]] 45name: lo_to_lo_sgpr_to_agpr 46tracksRegLiveness: true 47body: | 48 bb.0: 49 $sgpr0 = IMPLICIT_DEF 50 $agpr1_lo16 = COPY $sgpr0_lo16 51 S_ENDPGM 0 52... 53