1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -start-before=regallocfast,0 --stop-after=regallocfast,0 -o - %s | FileCheck -check-prefix=GCN %s
5 name: copy_vgpr_allocation
6 tracksRegLiveness: true
9 liveins: $vgpr0, $vgpr1, $vgpr4, $vgpr5
10 ; GCN-LABEL: name: copy_vgpr_allocation
11 ; GCN: liveins: $vgpr0, $vgpr1, $vgpr4, $vgpr5
13 ; GCN-NEXT: [[COPY:%[0-9]+]]:vreg_64 = COPY killed $vgpr0_vgpr1
14 ; GCN-NEXT: FLAT_STORE_DWORDX2 killed $vgpr4_vgpr5, [[COPY]], 0, 0, implicit $exec, implicit $flat_scr
15 %14:vreg_64 = COPY $vgpr0_vgpr1
16 FLAT_STORE_DWORDX2 $vgpr4_vgpr5, %14:vreg_64, 0, 0, implicit $exec, implicit $flat_scr
21 name: copy_sgpr_allocation
22 tracksRegLiveness: true
25 liveins: $sgpr0, $sgpr1, $sgpr4
26 ; GCN-LABEL: name: copy_sgpr_allocation
27 ; GCN: liveins: $sgpr0, $sgpr1, $sgpr4
29 ; GCN-NEXT: S_STORE_DWORD_SGPR killed $sgpr4, killed renamable $sgpr0_sgpr1, undef $m0, 0
30 %14:sreg_64 = COPY $sgpr0_sgpr1
31 S_STORE_DWORD_SGPR $sgpr4, %14:sreg_64, undef $m0, 0