1 # RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs -run-pass dead-mi-elimination -o - %s | FileCheck -check-prefix=GCN %s
3 # GCN-LABEL: name: dead_undef
8 tracksRegLiveness: true
10 - { id: 0, class: vgpr_32 }
11 - { id: 1, class: vgpr_32 }
12 - { id: 2, class: vgpr_32 }
17 dead %2:vgpr_32 = V_MAC_F32_e32 %0:vgpr_32, %1:vgpr_32, undef %2:vgpr_32, implicit $exec
20 # GCN-LABEL: name: dead_defined
22 # GCN-NEXT: S_ENDPGM 0
25 tracksRegLiveness: true
27 - { id: 0, class: vgpr_32 }
28 - { id: 1, class: vgpr_32 }
29 - { id: 2, class: vgpr_32 }
35 dead %2:vgpr_32 = V_MAC_F32_e32 %0:vgpr_32, %1:vgpr_32, %2:vgpr_32, implicit $exec
38 # Probably this dead mac can be removed anyway.
39 # GCN-LABEL: name: dead_def_live_use
40 # GCN: dead %2:vgpr_32 = V_MAC_F32_e32 %0, %1, %2, implicit $exec
42 name: dead_def_live_use
43 tracksRegLiveness: true
45 - { id: 0, class: vgpr_32 }
46 - { id: 1, class: vgpr_32 }
47 - { id: 2, class: vgpr_32 }
53 GLOBAL_STORE_DWORD undef $vgpr0_vgpr1, %2, 0, 0, 0, 0, implicit $exec
54 dead %2:vgpr_32 = V_MAC_F32_e32 %0:vgpr_32, %1:vgpr_32, %2:vgpr_32, implicit $exec