1; RUN: llc < %s -march=amdgcn -mcpu=kaveri -verify-machineinstrs | FileCheck %s --check-prefix=GCN --check-prefix=CI --check-prefix=NO-XNACK
2; RUN: llc < %s -march=amdgcn -mcpu=fiji -verify-machineinstrs | FileCheck %s --check-prefix=GCN --check-prefix=VI --check-prefix=NO-XNACK
3; RUN: llc < %s -march=amdgcn -mcpu=carrizo -mattr=+xnack -verify-machineinstrs | FileCheck %s --check-prefix=GCN --check-prefix=VI --check-prefix=XNACK
4
5; GCN-LABEL: {{^}}no_vcc_no_flat:
6; NO-XNACK: ; NumSgprs: 8
7; XNACK: ; NumSgprs: 12
8define void @no_vcc_no_flat() {
9entry:
10  call void asm sideeffect "", "~{SGPR7}"()
11  ret void
12}
13
14; GCN-LABEL: {{^}}vcc_no_flat:
15; NO-XNACK: ; NumSgprs: 10
16; XNACK: ; NumSgprs: 12
17define void @vcc_no_flat() {
18entry:
19  call void asm sideeffect "", "~{SGPR7},~{VCC}"()
20  ret void
21}
22
23; GCN-LABEL: {{^}}no_vcc_flat:
24; CI: ; NumSgprs: 12
25; VI: ; NumSgprs: 14
26define void @no_vcc_flat() {
27entry:
28  call void asm sideeffect "", "~{SGPR7},~{FLAT_SCR}"()
29  ret void
30}
31
32; GCN-LABEL: {{^}}vcc_flat:
33; CI: ; NumSgprs: 12
34; VI: ; NumSgprs: 14
35define void @vcc_flat() {
36entry:
37  call void asm sideeffect "", "~{SGPR7},~{VCC},~{FLAT_SCR}"()
38  ret void
39}
40