1# RUN: llc -o - %s -march=amdgcn -mcpu=fiji  -run-pass=machine-cp -verify-machineinstrs | FileCheck -check-prefix=GCN %s
2
3# GCN-LABEL: dead_copy
4# GCN:       bb.0
5# GCN-NOT:   dead $vgpr5 = COPY undef $vgpr11, implicit $exec
6# GCN:       $vgpr5 = COPY $vgpr11, implicit $exec
7
8---
9name: dead_copy
10
11body:    |
12
13  bb.0:
14    liveins: $vgpr11, $sgpr0, $sgpr1, $vgpr6, $vgpr7, $vgpr4
15
16    dead $vgpr5 = COPY undef $vgpr11, implicit $exec
17
18    $vgpr5 = COPY $vgpr11, implicit $exec
19
20    $sgpr14 = S_ADD_U32 $sgpr0, target-flags(amdgpu-gotprel) 1136, implicit-def $scc
21    $sgpr15 = S_ADDC_U32 $sgpr1, target-flags(amdgpu-gotprel32-lo) 0, implicit-def dead $scc, implicit $scc
22
23    $vgpr10 = COPY killed $sgpr14, implicit $exec
24    $vgpr11 = COPY killed $sgpr15, implicit $exec
25
26    FLAT_STORE_DWORDX4 $vgpr10_vgpr11, $vgpr4_vgpr5_vgpr6_vgpr7, 0, 0, 0, 0, implicit $exec, implicit $flat_scr
27...
28