1 # RUN: llc -mtriple=amdgcn -mcpu=gfx900 -start-before postrapseudos -asm-verbose=0 -verify-machineinstrs %s -o - | FileCheck -check-prefix=GCN %s
2 # RUN: llc -mtriple=amdgcn -mcpu=gfx1010 -start-before postrapseudos -asm-verbose=0 -verify-machineinstrs %s -o - | FileCheck -check-prefix=GCN %s
4 # Note: GFX8 did not allow SDWA SGPR sources. Therefor no HI16 subregs can be used there.
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
8 name: lo_to_lo_sgpr_to_vgpr
9 tracksRegLiveness: true
13 $vgpr1_lo16 = COPY $sgpr0_lo16
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
19 name: lo_to_hi_sgpr_to_vgpr
20 tracksRegLiveness: true
24 $vgpr1_hi16 = COPY killed $sgpr0_lo16