1 # RUN: llc -march=amdgcn -mcpu=gfx908 -run-pass=postra-machine-sink -verify-machineinstrs -o - %s | FileCheck %s
3 # Don't sink copy that writes sub-register of another copy source register
4 # CHECK-LABEL: name: donotsinkcopy
6 # CHECK: renamable $sgpr1 = COPY renamable $sgpr2
8 # CHECK: liveins: $sgpr0_sgpr1:0x000000000000000F
9 # CHECK: renamable $vgpr1_vgpr2 = COPY renamable $sgpr0_sgpr1
13 tracksRegLiveness: true
16 liveins: $sgpr0, $sgpr2, $vgpr3
17 S_CMP_LT_U32 renamable $sgpr2, target-flags(amdgpu-gotprel32-lo) 2, implicit-def $scc
18 renamable $sgpr1 = COPY renamable $sgpr2
19 renamable $vgpr1_vgpr2 = COPY renamable $sgpr0_sgpr1
20 S_CBRANCH_SCC0 %bb.2, implicit $scc
23 liveins: $vgpr2, $sgpr0_sgpr1:0x00000003