1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O2 -march=amdgcn -mcpu=gfx1100 -run-pass=si-insert-waitcnts -verify-machineinstrs -o - %s | FileCheck %s -check-prefixes=CHECK,OPT
3 # RUN: llc -O0 -march=amdgcn -mcpu=gfx1100 -run-pass=si-insert-waitcnts -verify-machineinstrs -o - %s | FileCheck %s -check-prefixes=CHECK,NOOPT
6 define amdgpu_ps void @tbuffer_store1() { ret void }
7 define amdgpu_ps void @tbuffer_store2() { ret void }
8 define amdgpu_ps void @flat_store() { ret void }
9 define amdgpu_ps void @global_store() { ret void }
10 define amdgpu_ps void @buffer_store_format() { ret void }
11 define amdgpu_ps void @ds_write_b32() { ret void }
12 define amdgpu_ps void @global_store_dword() { ret void }
13 define amdgpu_ps void @multiple_basic_blocks1() { ret void }
14 define amdgpu_ps void @multiple_basic_blocks2() { ret void }
15 define amdgpu_ps void @multiple_basic_blocks3() { ret void }
16 define amdgpu_ps void @recursive_loop() { ret void }
17 define amdgpu_ps void @recursive_loop_vmem() { ret void }
18 define amdgpu_ps void @image_store() { ret void }
19 define amdgpu_ps void @scratch_store() { ret void }
20 define amdgpu_ps void @buffer_atomic() { ret void }
21 define amdgpu_ps void @flat_atomic() { ret void }
22 define amdgpu_ps void @global_atomic() { ret void }
23 define amdgpu_ps void @image_atomic() { ret void }
24 define amdgpu_ps void @global_store_optnone() noinline optnone { ret void }
31 ; OPT-LABEL: name: tbuffer_store1
33 ; OPT-NEXT: TBUFFER_STORE_FORMAT_XYZW_OFFSET_exact killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, killed renamable $sgpr4, 42, 117, 0, 0, implicit $exec
35 ; OPT-NEXT: S_SENDMSG 3, implicit $exec, implicit $m0
36 ; OPT-NEXT: S_ENDPGM 0
38 ; NOOPT-LABEL: name: tbuffer_store1
40 ; NOOPT-NEXT: TBUFFER_STORE_FORMAT_XYZW_OFFSET_exact killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, killed renamable $sgpr4, 42, 117, 0, 0, implicit $exec
41 ; NOOPT-NEXT: S_ENDPGM 0
42 TBUFFER_STORE_FORMAT_XYZW_OFFSET_exact killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, killed renamable $sgpr4, 42, 117, 0, 0, implicit $exec
50 ; OPT-LABEL: name: tbuffer_store2
52 ; OPT-NEXT: TBUFFER_STORE_FORMAT_XYZW_OFFEN_exact killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $vgpr4, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 115, 0, 0, implicit $exec :: (dereferenceable store (s128), align 1, addrspace 7)
54 ; OPT-NEXT: S_SENDMSG 3, implicit $exec, implicit $m0
55 ; OPT-NEXT: S_ENDPGM 0
57 ; NOOPT-LABEL: name: tbuffer_store2
59 ; NOOPT-NEXT: TBUFFER_STORE_FORMAT_XYZW_OFFEN_exact killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $vgpr4, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 115, 0, 0, implicit $exec :: (dereferenceable store (s128), align 1, addrspace 7)
60 ; NOOPT-NEXT: S_ENDPGM 0
61 TBUFFER_STORE_FORMAT_XYZW_OFFEN_exact killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $vgpr4, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 115, 0, 0, implicit $exec :: (dereferenceable store (s128), align 1, addrspace 7)
69 ; CHECK-LABEL: name: flat_store
71 ; CHECK-NEXT: FLAT_STORE_DWORDX4 $vgpr49_vgpr50, $vgpr26_vgpr27_vgpr28_vgpr29, 0, 0, implicit $exec, implicit $flat_scr
72 ; CHECK-NEXT: S_ENDPGM 0
73 FLAT_STORE_DWORDX4 $vgpr49_vgpr50, $vgpr26_vgpr27_vgpr28_vgpr29, 0, 0, implicit $exec, implicit $flat_scr
81 ; OPT-LABEL: name: global_store
83 ; OPT-NEXT: GLOBAL_STORE_DWORD undef renamable $vgpr0_vgpr1, killed renamable $vgpr1, 0, 4, implicit $exec
84 ; OPT-NEXT: S_WAITCNT_VSCNT undef $sgpr_null, 0
86 ; OPT-NEXT: S_SENDMSG 3, implicit $exec, implicit $m0
87 ; OPT-NEXT: S_ENDPGM 0
89 ; NOOPT-LABEL: name: global_store
91 ; NOOPT-NEXT: GLOBAL_STORE_DWORD undef renamable $vgpr0_vgpr1, killed renamable $vgpr1, 0, 4, implicit $exec
92 ; NOOPT-NEXT: S_WAITCNT_VSCNT undef $sgpr_null, 0
93 ; NOOPT-NEXT: S_ENDPGM 0
94 GLOBAL_STORE_DWORD undef renamable $vgpr0_vgpr1, killed renamable $vgpr1, 0, 4, implicit $exec
95 S_WAITCNT_VSCNT undef $sgpr_null, 0
100 name: buffer_store_format
103 ; OPT-LABEL: name: buffer_store_format
105 ; OPT-NEXT: BUFFER_STORE_FORMAT_D16_X_OFFEN_exact killed renamable $vgpr0, killed renamable $vgpr1, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, killed renamable $sgpr4, 0, 0, 0, implicit $exec
107 ; OPT-NEXT: S_SENDMSG 3, implicit $exec, implicit $m0
108 ; OPT-NEXT: S_ENDPGM 0
110 ; NOOPT-LABEL: name: buffer_store_format
112 ; NOOPT-NEXT: BUFFER_STORE_FORMAT_D16_X_OFFEN_exact killed renamable $vgpr0, killed renamable $vgpr1, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, killed renamable $sgpr4, 0, 0, 0, implicit $exec
113 ; NOOPT-NEXT: S_ENDPGM 0
114 BUFFER_STORE_FORMAT_D16_X_OFFEN_exact killed renamable $vgpr0, killed renamable $vgpr1, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, killed renamable $sgpr4, 0, 0, 0, implicit $exec
122 ; CHECK-LABEL: name: ds_write_b32
123 ; CHECK: renamable $vgpr0 = IMPLICIT_DEF
124 ; CHECK-NEXT: renamable $vgpr1 = IMPLICIT_DEF
125 ; CHECK-NEXT: S_WAITCNT 0
126 ; CHECK-NEXT: DS_WRITE_B32_gfx9 killed renamable $vgpr0, killed renamable $vgpr1, 12, 0, implicit $exec
127 ; CHECK-NEXT: S_ENDPGM 0
128 renamable $vgpr0 = IMPLICIT_DEF
129 renamable $vgpr1 = IMPLICIT_DEF
130 DS_WRITE_B32_gfx9 killed renamable $vgpr0, killed renamable $vgpr1, 12, 0, implicit $exec
135 name: global_store_dword
138 liveins: $vgpr0, $sgpr0_sgpr1
140 ; OPT-LABEL: name: global_store_dword
141 ; OPT: liveins: $vgpr0, $sgpr0_sgpr1
143 ; OPT-NEXT: S_WAITCNT 0
144 ; OPT-NEXT: renamable $vgpr0 = V_MAD_I32_I24_e64 killed $vgpr1, killed $vgpr0, killed $sgpr2, 0, implicit $exec
145 ; OPT-NEXT: GLOBAL_STORE_DWORD_SADDR killed renamable $vgpr2, killed renamable $vgpr0, killed renamable $sgpr0_sgpr1, 0, 0, implicit $exec
147 ; OPT-NEXT: S_SENDMSG 3, implicit $exec, implicit $m0
148 ; OPT-NEXT: S_ENDPGM 0
150 ; NOOPT-LABEL: name: global_store_dword
151 ; NOOPT: liveins: $vgpr0, $sgpr0_sgpr1
153 ; NOOPT-NEXT: S_WAITCNT 0
154 ; NOOPT-NEXT: renamable $vgpr0 = V_MAD_I32_I24_e64 killed $vgpr1, killed $vgpr0, killed $sgpr2, 0, implicit $exec
155 ; NOOPT-NEXT: GLOBAL_STORE_DWORD_SADDR killed renamable $vgpr2, killed renamable $vgpr0, killed renamable $sgpr0_sgpr1, 0, 0, implicit $exec
156 ; NOOPT-NEXT: S_ENDPGM 0
157 renamable $vgpr0 = V_MAD_I32_I24_e64 killed $vgpr1, killed $vgpr0, killed $sgpr2, 0, implicit $exec
158 GLOBAL_STORE_DWORD_SADDR killed renamable $vgpr2, killed renamable $vgpr0, killed renamable $sgpr0_sgpr1, 0, 0, implicit $exec
163 name: multiple_basic_blocks1
165 ; CHECK-LABEL: name: multiple_basic_blocks1
167 ; CHECK-NEXT: successors: %bb.1(0x80000000)
169 ; CHECK-NEXT: S_WAITCNT 0
170 ; CHECK-NEXT: renamable $vgpr0 = BUFFER_LOAD_FORMAT_X_IDXEN killed renamable $vgpr0, renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, implicit $exec
171 ; CHECK-NEXT: S_BRANCH %bb.1
174 ; CHECK-NEXT: successors: %bb.1(0x40000000), %bb.2(0x40000000)
176 ; CHECK-NEXT: S_WAITCNT 1015
177 ; CHECK-NEXT: $vgpr1 = V_ADD_U32_e32 $vgpr0, $vgpr2, implicit $exec
178 ; CHECK-NEXT: S_CMP_LG_U32 killed renamable $sgpr3, renamable $sgpr4, implicit-def $scc
179 ; CHECK-NEXT: S_CBRANCH_SCC1 %bb.1, implicit killed $scc
180 ; CHECK-NEXT: S_BRANCH %bb.2
183 ; CHECK-NEXT: S_ENDPGM 0
187 renamable $vgpr0 = BUFFER_LOAD_FORMAT_X_IDXEN killed renamable $vgpr0, renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, implicit $exec
191 successors: %bb.1, %bb.2
193 $vgpr1 = V_ADD_U32_e32 renamable $vgpr0, renamable $vgpr2, implicit $exec
194 S_CMP_LG_U32 killed renamable $sgpr3, renamable $sgpr4, implicit-def $scc
195 S_CBRANCH_SCC1 %bb.1, implicit killed $scc
204 # One block has a VMEM store as the last instruction, we should release the VGPRS
207 name: multiple_basic_blocks2
209 ; OPT-LABEL: name: multiple_basic_blocks2
211 ; OPT-NEXT: successors: %bb.2(0x80000000)
213 ; OPT-NEXT: S_WAITCNT 0
214 ; OPT-NEXT: TBUFFER_STORE_FORMAT_X_OFFSET_exact killed renamable $vgpr0, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 125, 0, 0, implicit $exec
215 ; OPT-NEXT: $vgpr1 = V_ADD_U32_e32 $vgpr0, $vgpr2, implicit $exec
216 ; OPT-NEXT: S_BRANCH %bb.2
219 ; OPT-NEXT: successors: %bb.2(0x80000000)
221 ; OPT-NEXT: $vgpr1 = V_ADD_U32_e32 $vgpr0, $vgpr2, implicit $exec
222 ; OPT-NEXT: TBUFFER_STORE_FORMAT_X_OFFSET_exact killed renamable $vgpr0, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 125, 0, 0, implicit $exec
223 ; OPT-NEXT: S_BRANCH %bb.2
227 ; OPT-NEXT: S_SENDMSG 3, implicit $exec, implicit $m0
228 ; OPT-NEXT: S_ENDPGM 0
230 ; NOOPT-LABEL: name: multiple_basic_blocks2
232 ; NOOPT-NEXT: successors: %bb.2(0x80000000)
234 ; NOOPT-NEXT: S_WAITCNT 0
235 ; NOOPT-NEXT: TBUFFER_STORE_FORMAT_X_OFFSET_exact killed renamable $vgpr0, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 125, 0, 0, implicit $exec
236 ; NOOPT-NEXT: $vgpr1 = V_ADD_U32_e32 $vgpr0, $vgpr2, implicit $exec
237 ; NOOPT-NEXT: S_BRANCH %bb.2
240 ; NOOPT-NEXT: successors: %bb.2(0x80000000)
242 ; NOOPT-NEXT: $vgpr1 = V_ADD_U32_e32 $vgpr0, $vgpr2, implicit $exec
243 ; NOOPT-NEXT: TBUFFER_STORE_FORMAT_X_OFFSET_exact killed renamable $vgpr0, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 125, 0, 0, implicit $exec
244 ; NOOPT-NEXT: S_BRANCH %bb.2
247 ; NOOPT-NEXT: S_ENDPGM 0
251 TBUFFER_STORE_FORMAT_X_OFFSET_exact killed renamable $vgpr0, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 125, 0, 0, implicit $exec
252 $vgpr1 = V_ADD_U32_e32 renamable $vgpr0, renamable $vgpr2, implicit $exec
258 $vgpr1 = V_ADD_U32_e32 renamable $vgpr0, renamable $vgpr2, implicit $exec
259 TBUFFER_STORE_FORMAT_X_OFFSET_exact killed renamable $vgpr0, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 125, 0, 0, implicit $exec
267 # One parent block has a VMEM store, release VGPRs
269 name: multiple_basic_blocks3
271 ; OPT-LABEL: name: multiple_basic_blocks3
273 ; OPT-NEXT: successors: %bb.2(0x80000000)
275 ; OPT-NEXT: S_WAITCNT 0
276 ; OPT-NEXT: $vgpr1 = V_ADD_U32_e32 $vgpr0, $vgpr2, implicit $exec
277 ; OPT-NEXT: TBUFFER_STORE_FORMAT_X_OFFSET_exact killed renamable $vgpr0, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 125, 0, 0, implicit $exec
278 ; OPT-NEXT: S_BRANCH %bb.2
281 ; OPT-NEXT: successors: %bb.2(0x80000000)
283 ; OPT-NEXT: $vgpr1 = V_ADD_U32_e32 $vgpr0, $vgpr2, implicit $exec
284 ; OPT-NEXT: S_BRANCH %bb.2
287 ; OPT-NEXT: successors: %bb.4(0x80000000)
289 ; OPT-NEXT: S_BRANCH %bb.4
292 ; OPT-NEXT: successors: %bb.4(0x80000000)
294 ; OPT-NEXT: $vgpr1 = V_ADD_U32_e32 $vgpr0, $vgpr2, implicit $exec
295 ; OPT-NEXT: S_BRANCH %bb.4
299 ; OPT-NEXT: S_SENDMSG 3, implicit $exec, implicit $m0
300 ; OPT-NEXT: S_ENDPGM 0
302 ; NOOPT-LABEL: name: multiple_basic_blocks3
304 ; NOOPT-NEXT: successors: %bb.2(0x80000000)
306 ; NOOPT-NEXT: S_WAITCNT 0
307 ; NOOPT-NEXT: $vgpr1 = V_ADD_U32_e32 $vgpr0, $vgpr2, implicit $exec
308 ; NOOPT-NEXT: TBUFFER_STORE_FORMAT_X_OFFSET_exact killed renamable $vgpr0, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 125, 0, 0, implicit $exec
309 ; NOOPT-NEXT: S_BRANCH %bb.2
312 ; NOOPT-NEXT: successors: %bb.2(0x80000000)
314 ; NOOPT-NEXT: $vgpr1 = V_ADD_U32_e32 $vgpr0, $vgpr2, implicit $exec
315 ; NOOPT-NEXT: S_BRANCH %bb.2
318 ; NOOPT-NEXT: successors: %bb.4(0x80000000)
320 ; NOOPT-NEXT: S_BRANCH %bb.4
323 ; NOOPT-NEXT: successors: %bb.4(0x80000000)
325 ; NOOPT-NEXT: $vgpr1 = V_ADD_U32_e32 $vgpr0, $vgpr2, implicit $exec
326 ; NOOPT-NEXT: S_BRANCH %bb.4
329 ; NOOPT-NEXT: S_ENDPGM 0
333 $vgpr1 = V_ADD_U32_e32 renamable $vgpr0, renamable $vgpr2, implicit $exec
334 TBUFFER_STORE_FORMAT_X_OFFSET_exact killed renamable $vgpr0, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 125, 0, 0, implicit $exec
340 $vgpr1 = V_ADD_U32_e32 renamable $vgpr0, renamable $vgpr2, implicit $exec
351 $vgpr1 = V_ADD_U32_e32 renamable $vgpr0, renamable $vgpr2, implicit $exec
361 ; CHECK-LABEL: name: recursive_loop
363 ; CHECK-NEXT: successors: %bb.1(0x80000000)
365 ; CHECK-NEXT: S_WAITCNT 0
366 ; CHECK-NEXT: renamable $vgpr0 = BUFFER_LOAD_FORMAT_X_IDXEN killed renamable $vgpr0, renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, implicit $exec
367 ; CHECK-NEXT: S_BRANCH %bb.1
370 ; CHECK-NEXT: successors: %bb.1(0x40000000), %bb.2(0x40000000)
372 ; CHECK-NEXT: S_CMP_LG_U32 killed renamable $sgpr3, renamable $sgpr4, implicit-def $scc
373 ; CHECK-NEXT: S_CBRANCH_SCC1 %bb.1, implicit killed $scc
374 ; CHECK-NEXT: S_BRANCH %bb.2
377 ; CHECK-NEXT: S_ENDPGM 0
381 renamable $vgpr0 = BUFFER_LOAD_FORMAT_X_IDXEN killed renamable $vgpr0, renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, implicit $exec
385 successors: %bb.1, %bb.2
387 S_CMP_LG_U32 killed renamable $sgpr3, renamable $sgpr4, implicit-def $scc
388 S_CBRANCH_SCC1 %bb.1, implicit killed $scc
396 name: recursive_loop_vmem
398 ; OPT-LABEL: name: recursive_loop_vmem
400 ; OPT-NEXT: successors: %bb.1(0x80000000)
402 ; OPT-NEXT: S_WAITCNT 0
403 ; OPT-NEXT: renamable $vgpr0 = BUFFER_LOAD_FORMAT_X_IDXEN killed renamable $vgpr0, renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, implicit $exec
404 ; OPT-NEXT: S_BRANCH %bb.1
407 ; OPT-NEXT: successors: %bb.1(0x40000000), %bb.2(0x40000000)
409 ; OPT-NEXT: S_WAITCNT 1015
410 ; OPT-NEXT: TBUFFER_STORE_FORMAT_XYZW_OFFEN_exact killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $vgpr4, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 115, 0, 0, implicit $exec
411 ; OPT-NEXT: S_CMP_LG_U32 killed renamable $sgpr3, renamable $sgpr4, implicit-def $scc
412 ; OPT-NEXT: S_CBRANCH_SCC1 %bb.1, implicit killed $scc
413 ; OPT-NEXT: S_BRANCH %bb.2
417 ; OPT-NEXT: S_SENDMSG 3, implicit $exec, implicit $m0
418 ; OPT-NEXT: S_ENDPGM 0
420 ; NOOPT-LABEL: name: recursive_loop_vmem
422 ; NOOPT-NEXT: successors: %bb.1(0x80000000)
424 ; NOOPT-NEXT: S_WAITCNT 0
425 ; NOOPT-NEXT: renamable $vgpr0 = BUFFER_LOAD_FORMAT_X_IDXEN killed renamable $vgpr0, renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, implicit $exec
426 ; NOOPT-NEXT: S_BRANCH %bb.1
429 ; NOOPT-NEXT: successors: %bb.1(0x40000000), %bb.2(0x40000000)
431 ; NOOPT-NEXT: S_WAITCNT 1015
432 ; NOOPT-NEXT: TBUFFER_STORE_FORMAT_XYZW_OFFEN_exact killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $vgpr4, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 115, 0, 0, implicit $exec
433 ; NOOPT-NEXT: S_CMP_LG_U32 killed renamable $sgpr3, renamable $sgpr4, implicit-def $scc
434 ; NOOPT-NEXT: S_CBRANCH_SCC1 %bb.1, implicit killed $scc
435 ; NOOPT-NEXT: S_BRANCH %bb.2
438 ; NOOPT-NEXT: S_ENDPGM 0
442 renamable $vgpr0 = BUFFER_LOAD_FORMAT_X_IDXEN killed renamable $vgpr0, renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, implicit $exec
446 successors: %bb.1, %bb.2
448 TBUFFER_STORE_FORMAT_XYZW_OFFEN_exact killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $vgpr4, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 115, 0, 0, implicit $exec
449 S_CMP_LG_U32 killed renamable $sgpr3, renamable $sgpr4, implicit-def $scc
450 S_CBRANCH_SCC1 %bb.1, implicit killed $scc
461 ; OPT-LABEL: name: image_store
463 ; OPT-NEXT: IMAGE_STORE_V2_V1_gfx11 killed renamable $vgpr0_vgpr1, killed renamable $vgpr2, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3_sgpr4_sgpr5_sgpr6_sgpr7, 12, 0, 1, 0, 0, -1, 0, 0, 0, implicit $exec :: (dereferenceable store (<2 x s32>), addrspace 7)
465 ; OPT-NEXT: S_SENDMSG 3, implicit $exec, implicit $m0
466 ; OPT-NEXT: S_ENDPGM 0
468 ; NOOPT-LABEL: name: image_store
470 ; NOOPT-NEXT: IMAGE_STORE_V2_V1_gfx11 killed renamable $vgpr0_vgpr1, killed renamable $vgpr2, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3_sgpr4_sgpr5_sgpr6_sgpr7, 12, 0, 1, 0, 0, -1, 0, 0, 0, implicit $exec :: (dereferenceable store (<2 x s32>), addrspace 7)
471 ; NOOPT-NEXT: S_ENDPGM 0
472 IMAGE_STORE_V2_V1_gfx11 killed renamable $vgpr0_vgpr1, killed renamable $vgpr2, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3_sgpr4_sgpr5_sgpr6_sgpr7, 12, 0, 1, 0, 0, -1, 0, 0, 0, implicit $exec :: (dereferenceable store (<2 x s32>), addrspace 7)
480 ; CHECK-LABEL: name: scratch_store
482 ; CHECK-NEXT: renamable $sgpr0 = S_AND_B32 killed renamable $sgpr0, -16, implicit-def dead $scc
483 ; CHECK-NEXT: SCRATCH_STORE_DWORD_SADDR killed renamable $vgpr0, killed renamable $sgpr0, 0, 0, implicit $exec, implicit $flat_scr
484 ; CHECK-NEXT: S_ENDPGM 0
485 renamable $sgpr0 = S_AND_B32 killed renamable $sgpr0, -16, implicit-def dead $scc
486 SCRATCH_STORE_DWORD_SADDR killed renamable $vgpr0, killed renamable $sgpr0, 0, 0, implicit $exec, implicit $flat_scr
494 ; OPT-LABEL: name: buffer_atomic
496 ; OPT-NEXT: BUFFER_ATOMIC_ADD_F32_OFFEN killed renamable $vgpr0, killed renamable $vgpr2, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, implicit $exec :: (volatile dereferenceable load store (s64), align 1, addrspace 7)
498 ; OPT-NEXT: S_SENDMSG 3, implicit $exec, implicit $m0
499 ; OPT-NEXT: S_ENDPGM 0
501 ; NOOPT-LABEL: name: buffer_atomic
503 ; NOOPT-NEXT: BUFFER_ATOMIC_ADD_F32_OFFEN killed renamable $vgpr0, killed renamable $vgpr2, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, implicit $exec :: (volatile dereferenceable load store (s64), align 1, addrspace 7)
504 ; NOOPT-NEXT: S_ENDPGM 0
505 BUFFER_ATOMIC_ADD_F32_OFFEN killed renamable $vgpr0, killed renamable $vgpr2, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, implicit $exec :: (volatile dereferenceable load store (s64), align 1, addrspace 7)
513 ; CHECK-LABEL: name: flat_atomic
515 ; CHECK-NEXT: renamable $vgpr0_vgpr1 = FLAT_ATOMIC_DEC_X2_RTN killed renamable $vgpr0_vgpr1, killed renamable $vgpr2_vgpr3, 40, 1, implicit $exec, implicit $flat_scr
516 ; CHECK-NEXT: S_ENDPGM 0
517 renamable $vgpr0_vgpr1 = FLAT_ATOMIC_DEC_X2_RTN killed renamable $vgpr0_vgpr1, killed renamable $vgpr2_vgpr3, 40, 1, implicit $exec, implicit $flat_scr
526 ; CHECK-LABEL: name: global_atomic
528 ; CHECK-NEXT: renamable $vgpr0_vgpr1 = GLOBAL_ATOMIC_INC_X2_SADDR_RTN killed renamable $vgpr0, killed renamable $vgpr1_vgpr2, killed renamable $sgpr0_sgpr1, 40, 1, implicit $exec
529 ; CHECK-NEXT: S_ENDPGM 0
530 renamable $vgpr0_vgpr1 = GLOBAL_ATOMIC_INC_X2_SADDR_RTN killed renamable $vgpr0, killed renamable $vgpr1_vgpr2, killed renamable $sgpr0_sgpr1, 40, 1, implicit $exec
538 ; CHECK-LABEL: name: image_atomic
540 ; CHECK-NEXT: renamable $vgpr0_vgpr1_vgpr2_vgpr3 = IMAGE_ATOMIC_CMPSWAP_V2_V1_gfx11 killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $vgpr4, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3_sgpr4_sgpr5_sgpr6_sgpr7, 15, 0, 1, 1, 0, 0, 0, 0, implicit $exec :: (volatile dereferenceable load store (s64), addrspace 7)
541 ; CHECK-NEXT: S_ENDPGM 0
542 renamable $vgpr0_vgpr1_vgpr2_vgpr3 = IMAGE_ATOMIC_CMPSWAP_V2_V1_gfx11 killed renamable $vgpr0_vgpr1_vgpr2_vgpr3, killed renamable $vgpr4, killed renamable $sgpr0_sgpr1_sgpr2_sgpr3_sgpr4_sgpr5_sgpr6_sgpr7, 15, 0, 1, 1, 0, 0, 0, 0, implicit $exec :: (volatile dereferenceable load store (s64), addrspace 7)
547 name: global_store_optnone
550 ; CHECK-LABEL: name: global_store_optnone
552 ; CHECK-NEXT: GLOBAL_STORE_DWORD undef renamable $vgpr0_vgpr1, killed renamable $vgpr1, 0, 4, implicit $exec
553 ; CHECK-NEXT: S_WAITCNT_VSCNT undef $sgpr_null, 0
554 ; CHECK-NEXT: S_ENDPGM 0
555 GLOBAL_STORE_DWORD undef renamable $vgpr0_vgpr1, killed renamable $vgpr1, 0, 4, implicit $exec
556 S_WAITCNT_VSCNT undef $sgpr_null, 0