1# RUN: llc -march=amdgcn -mcpu=gfx900 -start-before postrapseudos -asm-verbose=0 -verify-machineinstrs %s -o - | FileCheck -check-prefix=GCN %s
2# RUN: llc -march=amdgcn -mcpu=gfx1010 -start-before postrapseudos -asm-verbose=0 -verify-machineinstrs %s -o - | FileCheck -check-prefix=GCN %s
3
4# Note: GFX8 did not allow SDWA SGPR sources. Therefor no HI16 subregs can be used there.
5
6# GCN-LABEL: {{^}}lo_to_lo_sgpr_to_vgpr:
7# GCN: v_mov_b32_sdwa v1, s0 dst_sel:WORD_0 dst_unused:UNUSED_PRESERVE src0_sel:WORD_0
8name: lo_to_lo_sgpr_to_vgpr
9tracksRegLiveness: true
10body:             |
11  bb.0:
12    $sgpr0 = IMPLICIT_DEF
13    $vgpr1_lo16 = COPY $sgpr0_lo16
14    S_ENDPGM 0
15...
16
17# GCN-LABEL: {{^}}lo_to_hi_sgpr_to_vgpr:
18# GCN: v_mov_b32_sdwa v1, s0 dst_sel:WORD_1 dst_unused:UNUSED_PRESERVE src0_sel:WORD_0
19name: lo_to_hi_sgpr_to_vgpr
20tracksRegLiveness: true
21body:             |
22  bb.0:
23    $sgpr0 = IMPLICIT_DEF
24    $vgpr1_hi16 = COPY killed $sgpr0_lo16
25    S_ENDPGM 0
26...
27