Lines Matching refs:GCN

1 …achineinstrs -amdgpu-remove-redundant-endcf < %s | FileCheck -enable-var-scope -check-prefix=GCN %s
4 …nstrs -O0 -amdgpu-remove-redundant-endcf < %s | FileCheck -enable-var-scope -check-prefix=GCN-O0 %s
6 ; GCN-LABEL: {{^}}simple_nested_if:
7 ; GCN: s_and_saveexec_b64 [[SAVEEXEC:s\[[0-9:]+\]]]
8 ; GCN-NEXT: s_cbranch_execz [[ENDIF:.LBB[0-9_]+]]
9 ; GCN: s_and_b64 exec, exec, vcc
10 ; GCN-NEXT: s_cbranch_execz [[ENDIF]]
11 ; GCN-NEXT: ; %bb.{{[0-9]+}}:
12 ; GCN: store_dword
13 ; GCN-NEXT: {{^}}[[ENDIF]]:
14 ; GCN-NEXT: s_or_b64 exec, exec, [[SAVEEXEC]]
15 ; GCN: ds_write_b32
16 ; GCN: s_endpgm
18 ; GCN-O0-LABEL: {{^}}simple_nested_if:
19 ; GCN-O0: s_mov_b64 s[{{[0-9:]+}}], exec
20 ; GCN-O0-DAG: v_writelane_b32 [[VGPR:v[0-9]+]], s{{[0-9]+}}, [[OUTER_SPILL_LANE_0:[0-9]+]]
21 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[OUTER_SPILL_LANE_1:[0-9]+]]
22 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], s[{{[0-9:]+}}]
23 ; GCN-O0-NEXT: s_mov_b64 exec, s[{{[0-9:]+}}]
24 ; GCN-O0-NEXT: s_cbranch_execz [[ENDIF_OUTER:.LBB[0-9_]+]]
25 ; GCN-O0-NEXT: ; %bb.{{[0-9]+}}:
26 ; GCN-O0: s_mov_b64 s[{{[0-9:]+}}], exec
27 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_SPILL_LANE_0:[0-9]+]]
28 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_SPILL_LANE_1:[0-9]+]]
29 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], s[{{[0-9:]+}}]
30 ; GCN-O0-NEXT: s_mov_b64 exec, s[{{[0-9:]+}}]
31 ; GCN-O0-NEXT: s_cbranch_execz [[ENDIF_INNER:.LBB[0-9_]+]]
32 ; GCN-O0-NEXT: ; %bb.{{[0-9]+}}:
33 ; GCN-O0: store_dword
34 ; GCN-O0-NEXT: {{^}}[[ENDIF_INNER]]:
35 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_SPILL_LANE_0]]
36 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_SPILL_LANE_1]]
37 ; GCN-O0-NEXT: s_or_b64 exec, exec, s[{{[0-9:]+}}]
38 ; GCN-O0-NEXT: {{^}}[[ENDIF_OUTER]]:
39 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[OUTER_SPILL_LANE_0]]
40 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[OUTER_SPILL_LANE_1]]
41 ; GCN-O0-NEXT: s_or_b64 exec, exec, s[{{[0-9:]+}}]
42 ; GCN-O0: ds_write_b32
43 ; GCN-O0: s_endpgm
68 ; GCN-LABEL: {{^}}uncollapsable_nested_if:
69 ; GCN: s_and_saveexec_b64 [[SAVEEXEC_OUTER:s\[[0-9:]+\]]]
70 ; GCN-NEXT: s_cbranch_execz [[ENDIF_OUTER:.LBB[0-9_]+]]
71 ; GCN: s_and_saveexec_b64 [[SAVEEXEC_INNER:s\[[0-9:]+\]]]
72 ; GCN-NEXT: s_cbranch_execz [[ENDIF_INNER:.LBB[0-9_]+]]
73 ; GCN-NEXT: ; %bb.{{[0-9]+}}:
74 ; GCN: store_dword
75 ; GCN-NEXT: {{^}}[[ENDIF_INNER]]:
76 ; GCN-NEXT: s_or_b64 exec, exec, [[SAVEEXEC_INNER]]
77 ; GCN: store_dword
78 ; GCN-NEXT: {{^}}[[ENDIF_OUTER]]:
79 ; GCN-NEXT: s_or_b64 exec, exec, [[SAVEEXEC_OUTER]]
80 ; GCN: ds_write_b32
81 ; GCN: s_endpgm
83 ; GCN-O0-LABEL: {{^}}uncollapsable_nested_if:
84 ; GCN-O0: s_mov_b64 s[{{[0-9:]+}}], exec
85 ; GCN-O0-DAG: v_writelane_b32 [[VGPR:v[0-9]+]], s{{[0-9]+}}, [[OUTER_SPILL_LANE_0:[0-9]+]]
86 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[OUTER_SPILL_LANE_1:[0-9]+]]
87 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}]
88 ; GCN-O0-NEXT: s_mov_b64 exec, s[{{[0-9:]+}}]
89 ; GCN-O0-NEXT: s_cbranch_execz [[ENDIF_OUTER:.LBB[0-9_]+]]
90 ; GCN-O0-NEXT: ; %bb.{{[0-9]+}}:
91 ; GCN-O0: s_mov_b64 s[{{[0-9:]+}}], exec
92 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_SPILL_LANE_0:[0-9]+]]
93 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_SPILL_LANE_1:[0-9]+]]
94 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}]
95 ; GCN-O0-NEXT: s_mov_b64 exec, s[{{[0-9:]+}}]
96 ; GCN-O0-NEXT: s_cbranch_execz [[ENDIF_INNER:.LBB[0-9_]+]]
97 ; GCN-O0-NEXT: ; %bb.{{[0-9]+}}:
98 ; GCN-O0: store_dword
99 ; GCN-O0-NEXT: s_branch [[ENDIF_INNER]]
100 ; GCN-O0-NEXT: {{^}}[[ENDIF_OUTER]]:
101 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[OUTER_SPILL_LANE_0]]
102 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[OUTER_SPILL_LANE_1]]
103 ; GCN-O0-NEXT: s_or_b64 exec, exec, s[{{[0-9:]+}}]
104 ; GCN-O0-NEXT: s_branch [[LAST_BB:.LBB[0-9_]+]]
105 ; GCN-O0-NEXT: {{^}}[[ENDIF_INNER]]:
106 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_SPILL_LANE_0]]
107 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_SPILL_LANE_1]]
108 ; GCN-O0-NEXT: s_or_b64 exec, exec, s[{{[0-9:]+}}]
109 ; GCN-O0: s_branch [[ENDIF_OUTER]]
110 ; GCN-O0-NEXT: {{^}}[[LAST_BB]]:
111 ; GCN-O0: ds_write_b32
112 ; GCN-O0: s_endpgm
143 ; GCN-LABEL: {{^}}nested_if_if_else:
144 ; GCN: s_and_saveexec_b64 [[SAVEEXEC_OUTER:s\[[0-9:]+\]]]
145 ; GCN-NEXT: s_cbranch_execz [[ENDIF_OUTER:.LBB[0-9_]+]]
146 ; GCN: s_and_saveexec_b64 [[SAVEEXEC_INNER:s\[[0-9:]+\]]]
147 ; GCN-NEXT: s_xor_b64 [[SAVEEXEC_INNER2:s\[[0-9:]+\]]], exec, [[SAVEEXEC_INNER]]
148 ; GCN-NEXT: s_cbranch_execz [[THEN_INNER:.LBB[0-9_]+]]
149 ; GCN-NEXT: ; %bb.{{[0-9]+}}:
150 ; GCN: store_dword
151 ; GCN: {{^}}[[THEN_INNER]]:
152 ; GCN-NEXT: s_andn2_saveexec_b64 [[SAVEEXEC_INNER2]], [[SAVEEXEC_INNER2]]
153 ; GCN-NEXT: s_cbranch_execz [[ENDIF_OUTER]]
154 ; GCN: store_dword
155 ; GCN-NEXT: {{^}}[[ENDIF_OUTER]]:
156 ; GCN-NEXT: s_or_b64 exec, exec, [[SAVEEXEC_OUTER]]
157 ; GCN: ds_write_b32
158 ; GCN: s_endpgm
160 ; GCN-O0-LABEL: {{^}}nested_if_if_else:
161 ; GCN-O0: s_mov_b64 s[{{[0-9:]+}}], exec
162 ; GCN-O0-DAG: v_writelane_b32 [[VGPR:v[0-9]+]], s{{[0-9]+}}, [[OUTER_SPILL_LANE_0:[0-9]+]]
163 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[OUTER_SPILL_LANE_1:[0-9]+]]
164 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}]
165 ; GCN-O0-NEXT: s_mov_b64 exec, s[{{[0-9:]+}}]
166 ; GCN-O0-NEXT: s_cbranch_execz [[ENDIF_OUTER:.LBB[0-9_]+]]
167 ; GCN-O0-NEXT: ; %bb.{{[0-9]+}}:
168 ; GCN-O0: s_mov_b64 s[{{[0-9:]+}}], exec
169 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], s[{{[0-9:]+}}]
170 ; GCN-O0-NEXT: s_xor_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], s[{{[0-9:]+}}]
171 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[THEN_SPILL_LANE_0:[0-9]+]]
172 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[THEN_SPILL_LANE_1:[0-9]+]]
173 ; GCN-O0-NEXT: s_mov_b64 exec, s[{{[0-9:]+}}]
174 ; GCN-O0-NEXT: s_cbranch_execz [[THEN_INNER:.LBB[0-9_]+]]
175 ; GCN-O0-NEXT: s_branch [[TEMP_BB:.LBB[0-9_]+]]
176 ; GCN-O0-NEXT: {{^}}[[THEN_INNER]]:
177 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[THEN_SPILL_LANE_0]]
178 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[THEN_SPILL_LANE_1]]
179 ; GCN-O0-NEXT: s_or_saveexec_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}]
180 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}], exec, s[{{[0-9:]+}}]
181 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_SPILL_LANE_0:[0-9]+]]
182 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_SPILL_LANE_1:[0-9]+]]
183 ; GCN-O0-NEXT: s_xor_b64 exec, exec, s[{{[0-9:]+}}]
184 ; GCN-O0-NEXT: s_cbranch_execz [[ENDIF_INNER:.LBB[0-9_]+]]
185 ; GCN-O0-NEXT: ; %bb.{{[0-9]+}}:
186 ; GCN-O0: store_dword
187 ; GCN-O0-NEXT: s_branch [[ENDIF_INNER]]
188 ; GCN-O0-NEXT: {{^}}[[TEMP_BB]]:
189 ; GCN-O0: s_branch [[THEN_INNER]]
190 ; GCN-O0-NEXT: {{^}}[[ENDIF_INNER]]:
191 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_SPILL_LANE_0]]
192 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_SPILL_LANE_1]]
193 ; GCN-O0-NEXT: s_or_b64 exec, exec, s[{{[0-9:]+}}]
194 ; GCN-O0-NEXT: {{^}}[[ENDIF_OUTER]]:
195 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[OUTER_SPILL_LANE_0]]
196 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[OUTER_SPILL_LANE_1]]
197 ; GCN-O0-NEXT: s_or_b64 exec, exec, s[{{[0-9:]+}}]
198 ; GCN-O0: ds_write_b32
199 ; GCN-O0: s_endpgm
230 ; GCN-LABEL: {{^}}nested_if_else_if:
231 ; GCN: s_and_saveexec_b64 [[SAVEEXEC_OUTER:s\[[0-9:]+\]]]
232 ; GCN-NEXT: s_xor_b64 [[SAVEEXEC_OUTER2:s\[[0-9:]+\]]], exec, [[SAVEEXEC_OUTER]]
233 ; GCN-NEXT: s_cbranch_execz [[THEN_OUTER:.LBB[0-9_]+]]
234 ; GCN-NEXT: ; %bb.{{[0-9]+}}:
235 ; GCN: store_dword
236 ; GCN-NEXT: s_and_saveexec_b64 [[SAVEEXEC_INNER_IF_OUTER_ELSE:s\[[0-9:]+\]]]
237 ; GCN-NEXT: s_cbranch_execz [[THEN_OUTER_FLOW:.LBB[0-9_]+]]
238 ; GCN-NEXT: ; %bb.{{[0-9]+}}:
239 ; GCN: store_dword
240 ; GCN-NEXT: {{^}}[[THEN_OUTER_FLOW]]:
241 ; GCN-NEXT: s_or_b64 exec, exec, [[SAVEEXEC_INNER_IF_OUTER_ELSE]]
242 ; GCN: {{^}}[[THEN_OUTER]]:
243 ; GCN-NEXT: s_andn2_saveexec_b64 [[SAVEEXEC_OUTER2]], [[SAVEEXEC_OUTER2]]
244 ; GCN-NEXT: s_cbranch_execz [[ENDIF_OUTER:.LBB[0-9_]+]]
245 ; GCN-NEXT: ; %bb.{{[0-9]+}}:
246 ; GCN: store_dword
247 ; GCN-NEXT: s_and_saveexec_b64 [[SAVEEXEC_ELSE:s\[[0-9:]+\]]],
248 ; GCN-NEXT: s_cbranch_execz [[FLOW1:.LBB[0-9_]+]]
249 ; GCN-NEXT: ; %bb.{{[0-9]+}}:
250 ; GCN: store_dword
251 ; GCN-NEXT: [[FLOW1]]:
252 ; GCN-NEXT: s_or_b64 exec, exec, [[SAVEEXEC_ELSE]]
253 ; GCN: s_or_b64 exec, exec, [[SAVEEXEC_OUTER2]]
254 ; GCN: ds_write_b32
255 ; GCN: s_endpgm
257 ; GCN-O0-LABEL: {{^}}nested_if_else_if:
258 ; GCN-O0: s_mov_b64 s[{{[0-9:]+}}], exec
259 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], s[{{[0-9:]+}}]
260 ; GCN-O0-NEXT: s_xor_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], s[{{[0-9:]+}}]
261 ; GCN-O0-DAG: v_writelane_b32 [[VGPR:v[0-9]+]], s{{[0-9]+}}, [[OUTER_SPILL_LANE_0:[0-9]+]]
262 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[OUTER_SPILL_LANE_1:[0-9]+]]
263 ; GCN-O0-NEXT: s_mov_b64 exec, s[{{[0-9:]+}}]
264 ; GCN-O0-NEXT: s_cbranch_execz [[THEN_OUTER:.LBB[0-9_]+]]
265 ; GCN-O0-NEXT: s_branch [[INNER_IF_OUTER_ELSE:.LBB[0-9_]+]]
266 ; GCN-O0-NEXT: {{^}}[[THEN_OUTER]]:
267 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[OUTER_SPILL_LANE_0]]
268 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[OUTER_SPILL_LANE_1]]
269 ; GCN-O0-NEXT: s_or_saveexec_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}]
270 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}], exec, s[{{[0-9:]+}}]
271 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[OUTER_2_SPILL_LANE_0:[0-9]+]]
272 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[OUTER_2_SPILL_LANE_1:[0-9]+]]
273 ; GCN-O0-NEXT: s_xor_b64 exec, exec, s[{{[0-9:]+}}]
274 ; GCN-O0-NEXT: s_cbranch_execz [[ENDIF_OUTER:.LBB[0-9_]+]]
275 ; GCN-O0-NEXT: ; %bb.{{[0-9]+}}:
276 ; GCN-O0: store_dword
277 ; GCN-O0: s_mov_b64 s[{{[0-9:]+}}], exec
278 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[ELSE_SPILL_LANE_0:[0-9]+]]
279 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[ELSE_SPILL_LANE_1:[0-9]+]]
280 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], s[{{[0-9:]+}}]
281 ; GCN-O0-NEXT: s_mov_b64 exec, s[{{[0-9:]+}}]
282 ; GCN-O0-NEXT: s_cbranch_execz [[FLOW1:.LBB[0-9_]+]]
283 ; GCN-O0-NEXT: ; %bb.{{[0-9]+}}:
284 ; GCN-O0: store_dword
285 ; GCN-O0-NEXT: s_branch [[FLOW1]]
286 ; GCN-O0-NEXT: {{^}}[[INNER_IF_OUTER_ELSE]]
287 ; GCN-O0: s_mov_b64 s[{{[0-9:]+}}], exec
288 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_IF_OUTER_ELSE_SPILL_LANE_0:[0-9]+]]
289 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_IF_OUTER_ELSE_SPILL_LANE_1:[0-9]+]]
290 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], s[{{[0-9:]+}}]
291 ; GCN-O0-NEXT: s_mov_b64 exec, s[{{[0-9:]+}}]
292 ; GCN-O0-NEXT: s_cbranch_execz [[THEN_OUTER_FLOW:.LBB[0-9_]+]]
293 ; GCN-O0-NEXT: ; %bb.{{[0-9]+}}:
294 ; GCN-O0: store_dword
295 ; GCN-O0-NEXT: {{^}}[[THEN_OUTER_FLOW]]
296 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_IF_OUTER_ELSE_SPILL_LANE_0]]
297 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_IF_OUTER_ELSE_SPILL_LANE_1]]
298 ; GCN-O0-NEXT: s_or_b64 exec, exec, s[{{[0-9:]+}}]
299 ; GCN-O0-NEXT: s_branch [[THEN_OUTER]]
300 ; GCN-O0-NEXT: {{^}}[[FLOW1]]
301 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[ELSE_SPILL_LANE_0]]
302 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[ELSE_SPILL_LANE_1]]
303 ; GCN-O0-NEXT: s_or_b64 exec, exec, s[{{[0-9:]+}}]
304 ; GCN-O0-NEXT: {{^}}[[ENDIF_OUTER]]
305 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[OUTER_2_SPILL_LANE_0]]
306 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[OUTER_2_SPILL_LANE_1]]
307 ; GCN-O0-NEXT: s_or_b64 exec, exec, s[{{[0-9:]+}}]
308 ; GCN-O0: ds_write_b32
309 ; GCN-O0: s_endpgm
346 ; GCN-LABEL: {{^}}s_endpgm_unsafe_barrier:
347 ; GCN: s_and_saveexec_b64 [[SAVEEXEC:s\[[0-9:]+\]]]
348 ; GCN-NEXT: s_cbranch_execz [[ENDIF:.LBB[0-9_]+]]
349 ; GCN-NEXT: ; %bb.{{[0-9]+}}:
350 ; GCN: store_dword
351 ; GCN-NEXT: {{^}}[[ENDIF]]:
352 ; GCN-NEXT: s_or_b64 exec, exec, [[SAVEEXEC]]
353 ; GCN: s_barrier
354 ; GCN-NEXT: s_endpgm
356 ; GCN-O0-LABEL: {{^}}s_endpgm_unsafe_barrier:
357 ; GCN-O0: s_mov_b64 s[{{[0-9:]+}}], exec
358 ; GCN-O0-DAG: v_writelane_b32 [[VGPR:v[0-9]+]], s{{[0-9]+}}, [[SPILL_LANE_0:[0-9]+]]
359 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[SPILL_LANE_1:[0-9]+]]
360 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}]
361 ; GCN-O0-NEXT: s_mov_b64 exec, s[{{[0-9:]+}}]
362 ; GCN-O0-NEXT: s_cbranch_execz [[ENDIF:.LBB[0-9_]+]]
363 ; GCN-O0-NEXT: ; %bb.{{[0-9]+}}:
364 ; GCN-O0: store_dword
365 ; GCN-O0-NEXT: {{^}}[[ENDIF]]:
366 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[SPILL_LANE_0]]
367 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[SPILL_LANE_1]]
368 ; GCN-O0-NEXT: s_or_b64 exec, exec, s[{{[0-9:]+}}]
369 ; GCN-O0: s_barrier
370 ; GCN-O0: s_endpgm
388 ; GCN-LABEL: {{^}}scc_liveness:
390 ; GCN: [[BB1_OUTER_LOOP:.LBB[0-9]+_[0-9]+]]:
391 ; GCN: s_or_b64 exec, exec, [[SAVEEXEC_OUTER:s\[[0-9:]+\]]]
393 ; GCN: [[BB1_INNER_LOOP:.LBB[0-9]+_[0-9]+]]:
394 ; GCN: s_or_b64 exec, exec, s{{\[[0-9]+:[0-9]+\]}}
395 ; GCN: s_andn2_b64
396 ; GCN-NEXT: s_cbranch_execz
398 ; GCN: [[BB1_LOOP:.LBB[0-9]+_[0-9]+]]:
399 ; GCN: s_andn2_b64 exec, exec,
400 ; GCN-NEXT: s_cbranch_execnz [[BB1_LOOP]]
402 ; GCN: buffer_load_dword v{{[0-9]+}}, v{{[0-9]+}}, s{{\[[0-9]+:[0-9]+\]}}, 0 offen
404 ; GCN: s_and_saveexec_b64 [[SAVEEXEC_OUTER]], {{vcc|s\[[0-9:]+\]}}
405 ; GCN-NEXT: s_cbranch_execz [[BB1_OUTER_LOOP]]
407 ; GCN-NOT: s_or_b64 exec, exec
409 ; GCN: s_or_b64 exec, exec, s{{\[[0-9]+:[0-9]+\]}}
410 ; GCN: buffer_store_dword
411 ; GCN: buffer_store_dword
412 ; GCN: buffer_store_dword
413 ; GCN: buffer_store_dword
414 ; GCN: s_setpc_b64
416 ; GCN-O0-LABEL: {{^}}scc_liveness:
417 ; GCN-O0-COUNT-2: buffer_store_dword
418 ; GCN-O0-DAG: v_writelane_b32 [[VGPR:v[0-9]+]], s{{[0-9]+}}, [[INNER_LOOP_IN_EXEC_SPILL_LANE_0:[0-…
419 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_IN_EXEC_SPILL_LANE_1:[0-9]+]]
420 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_BACK_EDGE_EXEC_SPILL_LANE_0:[0-9…
421 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_BACK_EDGE_EXEC_SPILL_LANE_1:[0-9…
422 ; GCN-O0: [[INNER_LOOP:.LBB[0-9]+_[0-9]+]]:
423 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_LOOP_BACK_EDGE_EXEC_SPILL_LANE_0]]
424 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_LOOP_BACK_EDGE_EXEC_SPILL_LANE_1]]
425 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_LOOP_IN_EXEC_SPILL_LANE_0]]
426 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_LOOP_IN_EXEC_SPILL_LANE_1]]
427 ; GCN-O0: buffer_load_dword
428 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[OUTER_LOOP_EXEC_SPILL_LANE_0:[0-9]+]]
429 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[OUTER_LOOP_EXEC_SPILL_LANE_1:[0-9]+]]
430 ; GCN-O0: s_or_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], s[{{[0-9:]+}}]
431 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_OUT_EXEC_SPILL_LANE_0:[0-9]+]]
432 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_OUT_EXEC_SPILL_LANE_1:[0-9]+]]
433 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_IN_EXEC_SPILL_LANE_0]]
434 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_IN_EXEC_SPILL_LANE_1]]
435 ; GCN-O0-NEXT: s_mov_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}]
436 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_BACK_EDGE_EXEC_SPILL_LANE_0]]
437 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_BACK_EDGE_EXEC_SPILL_LANE_1]]
438 ; GCN-O0-NEXT: s_andn2_b64 exec, exec, s[{{[0-9:]+}}]
439 ; GCN-O0-NEXT: s_cbranch_execnz [[INNER_LOOP]]
440 ; GCN-O0-NEXT: ; %bb.{{[0-9]+}}:
441 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_LOOP_OUT_EXEC_SPILL_LANE_0]]
442 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[INNER_LOOP_OUT_EXEC_SPILL_LANE_1]]
443 ; GCN-O0-NEXT: s_or_b64 exec, exec, s[{{[0-9:]+}}]
444 ; GCN-O0: s_mov_b64 s[{{[0-9:]+}}], exec
445 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[FLOW2_IN_EXEC_SPILL_LANE_0:[0-9]+]]
446 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[FLOW2_IN_EXEC_SPILL_LANE_1:[0-9]+]]
447 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], s[{{[0-9:]+}}]
448 ; GCN-O0-NEXT: s_mov_b64 exec, s[{{[0-9:]+}}]
449 ; GCN-O0-NEXT: s_cbranch_execz [[FLOW2:.LBB[0-9_]+]]
450 ; GCN-O0: {{^}}[[FLOW2]]:
451 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[FLOW2_IN_EXEC_SPILL_LANE_0]]
452 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[FLOW2_IN_EXEC_SPILL_LANE_1]]
453 ; GCN-O0: s_branch [[FLOW:.LBB[0-9_]+]]
454 ; GCN-O0: {{^}}[[FLOW]]:
455 ; GCN-O0: s_mov_b64 s[{{[0-9:]+}}], exec
456 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[FLOW3_IN_EXEC_SPILL_LANE_0:[0-9]+]]
457 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[FLOW3_IN_EXEC_SPILL_LANE_1:[0-9]+]]
458 ; GCN-O0-NEXT: s_and_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], s[{{[0-9:]+}}]
459 ; GCN-O0-NEXT: s_mov_b64 exec, s[{{[0-9:]+}}]
460 ; GCN-O0-NEXT: s_cbranch_execz [[FLOW3:.LBB[0-9_]+]]
461 ; GCN-O0: ; %bb.{{[0-9]+}}:
462 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[FLOW1_OUT_EXEC_SPILL_LANE_0:[0-9]+]]
463 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[FLOW1_OUT_EXEC_SPILL_LANE_1:[0-9]+]]
464 ; GCN-O0: {{^}}[[FLOW3]]:
465 ; GCN-O0-COUNT-4: buffer_load_dword
466 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[OUTER_LOOP_EXEC_SPILL_LANE_0]]
467 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[OUTER_LOOP_EXEC_SPILL_LANE_1]]
468 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[FLOW1_OUT_EXEC_SPILL_LANE_0]]
469 ; GCN-O0-DAG: v_readlane_b32 s{{[0-9]+}}, [[VGPR]], [[FLOW1_OUT_EXEC_SPILL_LANE_1]]
470 ; GCN-O0: s_and_b64 s[{{[0-9:]+}}], exec, s[{{[0-9:]+}}]
471 ; GCN-O0-NEXT: s_or_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], s[{{[0-9:]+}}]
472 ; GCN-O0-COUNT-2: s_mov_b64
473 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_IN_EXEC_SPILL_LANE_0]]
474 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_IN_EXEC_SPILL_LANE_1]]
475 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_BACK_EDGE_EXEC_SPILL_LANE_0]]
476 ; GCN-O0-DAG: v_writelane_b32 [[VGPR]], s{{[0-9]+}}, [[INNER_LOOP_BACK_EDGE_EXEC_SPILL_LANE_1]]
477 ; GCN-O0-COUNT-4: buffer_store_dword
478 ; GCN-O0: s_andn2_b64 exec, exec, s[{{[0-9:]+}}]
479 ; GCN-O0-NEXT: s_cbranch_execnz [[INNER_LOOP]]
480 ; GCN-O0: ; %bb.{{[0-9]+}}:
481 ; GCN-O0-COUNT-4: buffer_store_dword
482 ; GCN-O0: s_setpc_b64