• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs < %s | FileCheck %s
2
3@var = addrspace(1) global float 0.0
4
5; CHECK-LABEL: {{^}}max_20_vgprs:
6; CHECK: VGPRBlocks: 4
7; CHECK: NumVGPRsForWavesPerEU: 20
8define amdgpu_kernel void @max_20_vgprs() #1 {
9  %val0 = load volatile float, float addrspace(1)* @var
10  %val1 = load volatile float, float addrspace(1)* @var
11  %val2 = load volatile float, float addrspace(1)* @var
12  %val3 = load volatile float, float addrspace(1)* @var
13  %val4 = load volatile float, float addrspace(1)* @var
14  %val5 = load volatile float, float addrspace(1)* @var
15  %val6 = load volatile float, float addrspace(1)* @var
16  %val7 = load volatile float, float addrspace(1)* @var
17  %val8 = load volatile float, float addrspace(1)* @var
18  %val9 = load volatile float, float addrspace(1)* @var
19  %val10 = load volatile float, float addrspace(1)* @var
20  %val11 = load volatile float, float addrspace(1)* @var
21  %val12 = load volatile float, float addrspace(1)* @var
22  %val13 = load volatile float, float addrspace(1)* @var
23  %val14 = load volatile float, float addrspace(1)* @var
24  %val15 = load volatile float, float addrspace(1)* @var
25  %val16 = load volatile float, float addrspace(1)* @var
26  %val17 = load volatile float, float addrspace(1)* @var
27  %val18 = load volatile float, float addrspace(1)* @var
28  %val19 = load volatile float, float addrspace(1)* @var
29  %val20 = load volatile float, float addrspace(1)* @var
30  %val21 = load volatile float, float addrspace(1)* @var
31  %val22 = load volatile float, float addrspace(1)* @var
32  %val23 = load volatile float, float addrspace(1)* @var
33  %val24 = load volatile float, float addrspace(1)* @var
34  %val25 = load volatile float, float addrspace(1)* @var
35  %val26 = load volatile float, float addrspace(1)* @var
36  %val27 = load volatile float, float addrspace(1)* @var
37  %val28 = load volatile float, float addrspace(1)* @var
38  %val29 = load volatile float, float addrspace(1)* @var
39  %val30 = load volatile float, float addrspace(1)* @var
40
41  store volatile float %val0, float addrspace(1)* @var
42  store volatile float %val1, float addrspace(1)* @var
43  store volatile float %val2, float addrspace(1)* @var
44  store volatile float %val3, float addrspace(1)* @var
45  store volatile float %val4, float addrspace(1)* @var
46  store volatile float %val5, float addrspace(1)* @var
47  store volatile float %val6, float addrspace(1)* @var
48  store volatile float %val7, float addrspace(1)* @var
49  store volatile float %val8, float addrspace(1)* @var
50  store volatile float %val9, float addrspace(1)* @var
51  store volatile float %val10, float addrspace(1)* @var
52  store volatile float %val11, float addrspace(1)* @var
53  store volatile float %val12, float addrspace(1)* @var
54  store volatile float %val13, float addrspace(1)* @var
55  store volatile float %val14, float addrspace(1)* @var
56  store volatile float %val15, float addrspace(1)* @var
57  store volatile float %val16, float addrspace(1)* @var
58  store volatile float %val17, float addrspace(1)* @var
59  store volatile float %val18, float addrspace(1)* @var
60  store volatile float %val19, float addrspace(1)* @var
61  store volatile float %val20, float addrspace(1)* @var
62  store volatile float %val21, float addrspace(1)* @var
63  store volatile float %val22, float addrspace(1)* @var
64  store volatile float %val23, float addrspace(1)* @var
65  store volatile float %val24, float addrspace(1)* @var
66  store volatile float %val25, float addrspace(1)* @var
67  store volatile float %val26, float addrspace(1)* @var
68  store volatile float %val27, float addrspace(1)* @var
69  store volatile float %val28, float addrspace(1)* @var
70  store volatile float %val29, float addrspace(1)* @var
71  store volatile float %val30, float addrspace(1)* @var
72
73  ret void
74}
75attributes #1 = {"amdgpu-num-vgpr"="20"}
76