annotate llvm/test/CodeGen/AMDGPU/exceed-max-sgprs.ll @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children 5f17cb93ff66
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: not llc -march=amdgcn -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 ; ERROR: error: scalar registers limit of 104 exceeded (106) in use_too_many_sgprs_tahiti
anatofuz
parents:
diff changeset
4 define amdgpu_kernel void @use_too_many_sgprs_tahiti() #0 {
anatofuz
parents:
diff changeset
5 call void asm sideeffect "", "~{s[0:7]}" ()
anatofuz
parents:
diff changeset
6 call void asm sideeffect "", "~{s[8:15]}" ()
anatofuz
parents:
diff changeset
7 call void asm sideeffect "", "~{s[16:23]}" ()
anatofuz
parents:
diff changeset
8 call void asm sideeffect "", "~{s[24:31]}" ()
anatofuz
parents:
diff changeset
9 call void asm sideeffect "", "~{s[32:39]}" ()
anatofuz
parents:
diff changeset
10 call void asm sideeffect "", "~{s[40:47]}" ()
anatofuz
parents:
diff changeset
11 call void asm sideeffect "", "~{s[48:55]}" ()
anatofuz
parents:
diff changeset
12 call void asm sideeffect "", "~{s[56:63]}" ()
anatofuz
parents:
diff changeset
13 call void asm sideeffect "", "~{s[64:71]}" ()
anatofuz
parents:
diff changeset
14 call void asm sideeffect "", "~{s[72:79]}" ()
anatofuz
parents:
diff changeset
15 call void asm sideeffect "", "~{s[80:87]}" ()
anatofuz
parents:
diff changeset
16 call void asm sideeffect "", "~{s[88:95]}" ()
anatofuz
parents:
diff changeset
17 call void asm sideeffect "", "~{s[96:103]}" ()
anatofuz
parents:
diff changeset
18 call void asm sideeffect "", "~{vcc}" ()
anatofuz
parents:
diff changeset
19 ret void
anatofuz
parents:
diff changeset
20 }
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 ; ERROR: error: scalar registers limit of 104 exceeded (106) in use_too_many_sgprs_bonaire
anatofuz
parents:
diff changeset
23 define amdgpu_kernel void @use_too_many_sgprs_bonaire() #1 {
anatofuz
parents:
diff changeset
24 call void asm sideeffect "", "~{s[0:7]}" ()
anatofuz
parents:
diff changeset
25 call void asm sideeffect "", "~{s[8:15]}" ()
anatofuz
parents:
diff changeset
26 call void asm sideeffect "", "~{s[16:23]}" ()
anatofuz
parents:
diff changeset
27 call void asm sideeffect "", "~{s[24:31]}" ()
anatofuz
parents:
diff changeset
28 call void asm sideeffect "", "~{s[32:39]}" ()
anatofuz
parents:
diff changeset
29 call void asm sideeffect "", "~{s[40:47]}" ()
anatofuz
parents:
diff changeset
30 call void asm sideeffect "", "~{s[48:55]}" ()
anatofuz
parents:
diff changeset
31 call void asm sideeffect "", "~{s[56:63]}" ()
anatofuz
parents:
diff changeset
32 call void asm sideeffect "", "~{s[64:71]}" ()
anatofuz
parents:
diff changeset
33 call void asm sideeffect "", "~{s[72:79]}" ()
anatofuz
parents:
diff changeset
34 call void asm sideeffect "", "~{s[80:87]}" ()
anatofuz
parents:
diff changeset
35 call void asm sideeffect "", "~{s[88:95]}" ()
anatofuz
parents:
diff changeset
36 call void asm sideeffect "", "~{s[96:103]}" ()
anatofuz
parents:
diff changeset
37 call void asm sideeffect "", "~{vcc}" ()
anatofuz
parents:
diff changeset
38 ret void
anatofuz
parents:
diff changeset
39 }
anatofuz
parents:
diff changeset
40
anatofuz
parents:
diff changeset
41 ; ERROR: error: scalar registers limit of 104 exceeded (108) in use_too_many_sgprs_bonaire_flat_scr
anatofuz
parents:
diff changeset
42 define amdgpu_kernel void @use_too_many_sgprs_bonaire_flat_scr() #1 {
anatofuz
parents:
diff changeset
43 call void asm sideeffect "", "~{s[0:7]}" ()
anatofuz
parents:
diff changeset
44 call void asm sideeffect "", "~{s[8:15]}" ()
anatofuz
parents:
diff changeset
45 call void asm sideeffect "", "~{s[16:23]}" ()
anatofuz
parents:
diff changeset
46 call void asm sideeffect "", "~{s[24:31]}" ()
anatofuz
parents:
diff changeset
47 call void asm sideeffect "", "~{s[32:39]}" ()
anatofuz
parents:
diff changeset
48 call void asm sideeffect "", "~{s[40:47]}" ()
anatofuz
parents:
diff changeset
49 call void asm sideeffect "", "~{s[48:55]}" ()
anatofuz
parents:
diff changeset
50 call void asm sideeffect "", "~{s[56:63]}" ()
anatofuz
parents:
diff changeset
51 call void asm sideeffect "", "~{s[64:71]}" ()
anatofuz
parents:
diff changeset
52 call void asm sideeffect "", "~{s[72:79]}" ()
anatofuz
parents:
diff changeset
53 call void asm sideeffect "", "~{s[80:87]}" ()
anatofuz
parents:
diff changeset
54 call void asm sideeffect "", "~{s[88:95]}" ()
anatofuz
parents:
diff changeset
55 call void asm sideeffect "", "~{s[96:103]}" ()
anatofuz
parents:
diff changeset
56 call void asm sideeffect "", "~{vcc}" ()
anatofuz
parents:
diff changeset
57 call void asm sideeffect "", "~{flat_scratch}" ()
anatofuz
parents:
diff changeset
58 ret void
anatofuz
parents:
diff changeset
59 }
anatofuz
parents:
diff changeset
60
anatofuz
parents:
diff changeset
61 ; ERROR: error: scalar registers limit of 96 exceeded (98) in use_too_many_sgprs_iceland
anatofuz
parents:
diff changeset
62 define amdgpu_kernel void @use_too_many_sgprs_iceland() #2 {
anatofuz
parents:
diff changeset
63 call void asm sideeffect "", "~{vcc}" ()
anatofuz
parents:
diff changeset
64 call void asm sideeffect "", "~{s[0:7]}" ()
anatofuz
parents:
diff changeset
65 call void asm sideeffect "", "~{s[8:15]}" ()
anatofuz
parents:
diff changeset
66 call void asm sideeffect "", "~{s[16:23]}" ()
anatofuz
parents:
diff changeset
67 call void asm sideeffect "", "~{s[24:31]}" ()
anatofuz
parents:
diff changeset
68 call void asm sideeffect "", "~{s[32:39]}" ()
anatofuz
parents:
diff changeset
69 call void asm sideeffect "", "~{s[40:47]}" ()
anatofuz
parents:
diff changeset
70 call void asm sideeffect "", "~{s[48:55]}" ()
anatofuz
parents:
diff changeset
71 call void asm sideeffect "", "~{s[56:63]}" ()
anatofuz
parents:
diff changeset
72 call void asm sideeffect "", "~{s[64:71]}" ()
anatofuz
parents:
diff changeset
73 call void asm sideeffect "", "~{s[72:79]}" ()
anatofuz
parents:
diff changeset
74 call void asm sideeffect "", "~{s[80:87]}" ()
anatofuz
parents:
diff changeset
75 call void asm sideeffect "", "~{s[88:95]}" ()
anatofuz
parents:
diff changeset
76 ret void
anatofuz
parents:
diff changeset
77 }
anatofuz
parents:
diff changeset
78
anatofuz
parents:
diff changeset
79 ; ERROR: error: addressable scalar registers limit of 102 exceeded (103) in use_too_many_sgprs_fiji
anatofuz
parents:
diff changeset
80 define amdgpu_kernel void @use_too_many_sgprs_fiji() #3 {
anatofuz
parents:
diff changeset
81 call void asm sideeffect "", "~{s[0:7]}" ()
anatofuz
parents:
diff changeset
82 call void asm sideeffect "", "~{s[8:15]}" ()
anatofuz
parents:
diff changeset
83 call void asm sideeffect "", "~{s[16:23]}" ()
anatofuz
parents:
diff changeset
84 call void asm sideeffect "", "~{s[24:31]}" ()
anatofuz
parents:
diff changeset
85 call void asm sideeffect "", "~{s[32:39]}" ()
anatofuz
parents:
diff changeset
86 call void asm sideeffect "", "~{s[40:47]}" ()
anatofuz
parents:
diff changeset
87 call void asm sideeffect "", "~{s[48:55]}" ()
anatofuz
parents:
diff changeset
88 call void asm sideeffect "", "~{s[56:63]}" ()
anatofuz
parents:
diff changeset
89 call void asm sideeffect "", "~{s[64:71]}" ()
anatofuz
parents:
diff changeset
90 call void asm sideeffect "", "~{s[72:79]}" ()
anatofuz
parents:
diff changeset
91 call void asm sideeffect "", "~{s[80:87]}" ()
anatofuz
parents:
diff changeset
92 call void asm sideeffect "", "~{s[88:95]}" ()
anatofuz
parents:
diff changeset
93 call void asm sideeffect "", "~{s[96:99]}" ()
anatofuz
parents:
diff changeset
94 call void asm sideeffect "", "~{s[100:101]}" ()
anatofuz
parents:
diff changeset
95 call void asm sideeffect "", "~{s102}" ()
anatofuz
parents:
diff changeset
96 ret void
anatofuz
parents:
diff changeset
97 }
anatofuz
parents:
diff changeset
98
anatofuz
parents:
diff changeset
99 attributes #0 = { nounwind "target-cpu"="tahiti" }
anatofuz
parents:
diff changeset
100 attributes #1 = { nounwind "target-cpu"="bonaire" }
anatofuz
parents:
diff changeset
101 attributes #2 = { nounwind "target-cpu"="iceland" }
anatofuz
parents:
diff changeset
102 attributes #3 = { nounwind "target-cpu"="fiji" }