[MachineScheduler] Fix physreg dependencies of ExitSU (#123541)
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / GlobalISel / llvm.memcpy.ll
blobe8de761540b7a24e25b6efec59461286a0c1de07
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -global-isel -mtriple=amdgcn-- -verify-machineinstrs -amdgpu-memcpy-loop-unroll=2 -mem-intrinsic-expand-size=35 %s -o - | FileCheck -check-prefix=LOOP %s
3 ; RUN: llc -global-isel -mtriple=amdgcn-- -verify-machineinstrs -amdgpu-memcpy-loop-unroll=2 -mem-intrinsic-expand-size=37 %s -o - | FileCheck -check-prefix=UNROLL %s
5 declare void @llvm.memcpy.p1.p1.i32(ptr addrspace(1), ptr addrspace(1), i32, i1 immarg)
7 define amdgpu_cs void @memcpy_p1i8(ptr addrspace(1) %dst, ptr addrspace(1) %src) {
8 ; LOOP-LABEL: memcpy_p1i8:
9 ; LOOP:       ; %bb.0:
10 ; LOOP-NEXT:    s_mov_b64 s[0:1], 0
11 ; LOOP-NEXT:    s_mov_b32 s2, 0
12 ; LOOP-NEXT:    s_mov_b32 s3, 0xf000
13 ; LOOP-NEXT:    v_mov_b32_e32 v5, s1
14 ; LOOP-NEXT:    v_mov_b32_e32 v4, s0
15 ; LOOP-NEXT:  .LBB0_1: ; %load-store-loop
16 ; LOOP-NEXT:    ; =>This Inner Loop Header: Depth=1
17 ; LOOP-NEXT:    v_add_i32_e32 v6, vcc, v2, v4
18 ; LOOP-NEXT:    v_addc_u32_e32 v7, vcc, v3, v5, vcc
19 ; LOOP-NEXT:    buffer_load_ubyte v26, v[6:7], s[0:3], 0 addr64
20 ; LOOP-NEXT:    s_waitcnt expcnt(5)
21 ; LOOP-NEXT:    buffer_load_ubyte v29, v[6:7], s[0:3], 0 addr64 offset:1
22 ; LOOP-NEXT:    s_waitcnt expcnt(2)
23 ; LOOP-NEXT:    buffer_load_ubyte v31, v[6:7], s[0:3], 0 addr64 offset:2
24 ; LOOP-NEXT:    buffer_load_ubyte v32, v[6:7], s[0:3], 0 addr64 offset:3
25 ; LOOP-NEXT:    buffer_load_ubyte v36, v[6:7], s[0:3], 0 addr64 offset:4
26 ; LOOP-NEXT:    buffer_load_ubyte v37, v[6:7], s[0:3], 0 addr64 offset:5
27 ; LOOP-NEXT:    buffer_load_ubyte v38, v[6:7], s[0:3], 0 addr64 offset:6
28 ; LOOP-NEXT:    buffer_load_ubyte v39, v[6:7], s[0:3], 0 addr64 offset:7
29 ; LOOP-NEXT:    buffer_load_ubyte v8, v[6:7], s[0:3], 0 addr64 offset:8
30 ; LOOP-NEXT:    buffer_load_ubyte v11, v[6:7], s[0:3], 0 addr64 offset:9
31 ; LOOP-NEXT:    buffer_load_ubyte v12, v[6:7], s[0:3], 0 addr64 offset:10
32 ; LOOP-NEXT:    s_waitcnt expcnt(0)
33 ; LOOP-NEXT:    buffer_load_ubyte v13, v[6:7], s[0:3], 0 addr64 offset:11
34 ; LOOP-NEXT:    buffer_load_ubyte v9, v[6:7], s[0:3], 0 addr64 offset:12
35 ; LOOP-NEXT:    buffer_load_ubyte v15, v[6:7], s[0:3], 0 addr64 offset:13
36 ; LOOP-NEXT:    buffer_load_ubyte v16, v[6:7], s[0:3], 0 addr64 offset:14
37 ; LOOP-NEXT:    buffer_load_ubyte v17, v[6:7], s[0:3], 0 addr64 offset:15
38 ; LOOP-NEXT:    buffer_load_ubyte v10, v[6:7], s[0:3], 0 addr64 offset:16
39 ; LOOP-NEXT:    buffer_load_ubyte v19, v[6:7], s[0:3], 0 addr64 offset:17
40 ; LOOP-NEXT:    buffer_load_ubyte v20, v[6:7], s[0:3], 0 addr64 offset:18
41 ; LOOP-NEXT:    buffer_load_ubyte v21, v[6:7], s[0:3], 0 addr64 offset:19
42 ; LOOP-NEXT:    buffer_load_ubyte v14, v[6:7], s[0:3], 0 addr64 offset:20
43 ; LOOP-NEXT:    buffer_load_ubyte v23, v[6:7], s[0:3], 0 addr64 offset:21
44 ; LOOP-NEXT:    buffer_load_ubyte v24, v[6:7], s[0:3], 0 addr64 offset:22
45 ; LOOP-NEXT:    buffer_load_ubyte v25, v[6:7], s[0:3], 0 addr64 offset:23
46 ; LOOP-NEXT:    buffer_load_ubyte v18, v[6:7], s[0:3], 0 addr64 offset:24
47 ; LOOP-NEXT:    buffer_load_ubyte v27, v[6:7], s[0:3], 0 addr64 offset:25
48 ; LOOP-NEXT:    buffer_load_ubyte v28, v[6:7], s[0:3], 0 addr64 offset:26
49 ; LOOP-NEXT:    buffer_load_ubyte v30, v[6:7], s[0:3], 0 addr64 offset:27
50 ; LOOP-NEXT:    buffer_load_ubyte v22, v[6:7], s[0:3], 0 addr64 offset:28
51 ; LOOP-NEXT:    buffer_load_ubyte v33, v[6:7], s[0:3], 0 addr64 offset:29
52 ; LOOP-NEXT:    buffer_load_ubyte v34, v[6:7], s[0:3], 0 addr64 offset:30
53 ; LOOP-NEXT:    buffer_load_ubyte v35, v[6:7], s[0:3], 0 addr64 offset:31
54 ; LOOP-NEXT:    s_waitcnt vmcnt(14)
55 ; LOOP-NEXT:    v_lshlrev_b32_e32 v6, 8, v29
56 ; LOOP-NEXT:    v_or_b32_e32 v26, v6, v26
57 ; LOOP-NEXT:    v_lshlrev_b32_e32 v6, 24, v32
58 ; LOOP-NEXT:    v_lshlrev_b32_e32 v7, 16, v31
59 ; LOOP-NEXT:    v_or_b32_e32 v29, v6, v7
60 ; LOOP-NEXT:    v_lshlrev_b32_e32 v6, 8, v37
61 ; LOOP-NEXT:    v_lshlrev_b32_e32 v7, 24, v39
62 ; LOOP-NEXT:    v_lshlrev_b32_e32 v32, 16, v38
63 ; LOOP-NEXT:    v_or_b32_e32 v31, v6, v36
64 ; LOOP-NEXT:    v_or_b32_e32 v32, v7, v32
65 ; LOOP-NEXT:    v_add_i32_e32 v6, vcc, v0, v4
66 ; LOOP-NEXT:    v_addc_u32_e32 v7, vcc, v1, v5, vcc
67 ; LOOP-NEXT:    v_add_i32_e32 v4, vcc, 32, v4
68 ; LOOP-NEXT:    v_addc_u32_e32 v5, vcc, 0, v5, vcc
69 ; LOOP-NEXT:    v_cmp_gt_u32_e32 vcc, 32, v4
70 ; LOOP-NEXT:    v_lshlrev_b32_e32 v11, 8, v11
71 ; LOOP-NEXT:    v_lshlrev_b32_e32 v13, 24, v13
72 ; LOOP-NEXT:    v_lshlrev_b32_e32 v12, 16, v12
73 ; LOOP-NEXT:    v_lshlrev_b32_e32 v15, 8, v15
74 ; LOOP-NEXT:    v_lshlrev_b32_e32 v17, 24, v17
75 ; LOOP-NEXT:    v_lshlrev_b32_e32 v16, 16, v16
76 ; LOOP-NEXT:    v_lshlrev_b32_e32 v19, 8, v19
77 ; LOOP-NEXT:    s_waitcnt vmcnt(12)
78 ; LOOP-NEXT:    v_lshlrev_b32_e32 v21, 24, v21
79 ; LOOP-NEXT:    v_lshlrev_b32_e32 v20, 16, v20
80 ; LOOP-NEXT:    s_waitcnt vmcnt(10)
81 ; LOOP-NEXT:    v_lshlrev_b32_e32 v23, 8, v23
82 ; LOOP-NEXT:    s_waitcnt vmcnt(8)
83 ; LOOP-NEXT:    v_lshlrev_b32_e32 v25, 24, v25
84 ; LOOP-NEXT:    v_lshlrev_b32_e32 v24, 16, v24
85 ; LOOP-NEXT:    s_waitcnt vmcnt(6)
86 ; LOOP-NEXT:    v_lshlrev_b32_e32 v27, 8, v27
87 ; LOOP-NEXT:    s_waitcnt vmcnt(4)
88 ; LOOP-NEXT:    v_lshlrev_b32_e32 v30, 24, v30
89 ; LOOP-NEXT:    v_lshlrev_b32_e32 v28, 16, v28
90 ; LOOP-NEXT:    s_waitcnt vmcnt(2)
91 ; LOOP-NEXT:    v_lshlrev_b32_e32 v33, 8, v33
92 ; LOOP-NEXT:    s_waitcnt vmcnt(0)
93 ; LOOP-NEXT:    v_lshlrev_b32_e32 v35, 24, v35
94 ; LOOP-NEXT:    v_lshlrev_b32_e32 v34, 16, v34
95 ; LOOP-NEXT:    v_or_b32_e32 v8, v11, v8
96 ; LOOP-NEXT:    v_or_b32_e32 v11, v13, v12
97 ; LOOP-NEXT:    v_or_b32_e32 v9, v15, v9
98 ; LOOP-NEXT:    v_or_b32_e32 v12, v17, v16
99 ; LOOP-NEXT:    v_or_b32_e32 v10, v19, v10
100 ; LOOP-NEXT:    v_or_b32_e32 v13, v21, v20
101 ; LOOP-NEXT:    v_or_b32_e32 v14, v23, v14
102 ; LOOP-NEXT:    v_or_b32_e32 v15, v25, v24
103 ; LOOP-NEXT:    v_or_b32_e32 v16, v27, v18
104 ; LOOP-NEXT:    v_or_b32_e32 v17, v30, v28
105 ; LOOP-NEXT:    v_or_b32_e32 v18, v33, v22
106 ; LOOP-NEXT:    v_or_b32_e32 v19, v35, v34
107 ; LOOP-NEXT:    v_or_b32_e32 v20, v29, v26
108 ; LOOP-NEXT:    v_or_b32_e32 v21, v32, v31
109 ; LOOP-NEXT:    v_or_b32_e32 v8, v11, v8
110 ; LOOP-NEXT:    v_or_b32_e32 v9, v12, v9
111 ; LOOP-NEXT:    v_or_b32_e32 v10, v13, v10
112 ; LOOP-NEXT:    v_or_b32_e32 v11, v15, v14
113 ; LOOP-NEXT:    v_or_b32_e32 v12, v17, v16
114 ; LOOP-NEXT:    v_or_b32_e32 v13, v19, v18
115 ; LOOP-NEXT:    v_lshrrev_b32_e32 v14, 16, v20
116 ; LOOP-NEXT:    v_bfe_u32 v15, v20, 8, 8
117 ; LOOP-NEXT:    buffer_store_byte v20, v[6:7], s[0:3], 0 addr64
118 ; LOOP-NEXT:    v_lshrrev_b32_e32 v16, 24, v20
119 ; LOOP-NEXT:    v_lshrrev_b32_e32 v17, 16, v21
120 ; LOOP-NEXT:    v_bfe_u32 v18, v21, 8, 8
121 ; LOOP-NEXT:    buffer_store_byte v21, v[6:7], s[0:3], 0 addr64 offset:4
122 ; LOOP-NEXT:    v_lshrrev_b32_e32 v19, 24, v21
123 ; LOOP-NEXT:    s_waitcnt expcnt(1)
124 ; LOOP-NEXT:    v_lshrrev_b32_e32 v20, 16, v8
125 ; LOOP-NEXT:    s_waitcnt expcnt(0)
126 ; LOOP-NEXT:    v_bfe_u32 v21, v8, 8, 8
127 ; LOOP-NEXT:    buffer_store_byte v8, v[6:7], s[0:3], 0 addr64 offset:8
128 ; LOOP-NEXT:    s_waitcnt expcnt(0)
129 ; LOOP-NEXT:    v_lshrrev_b32_e32 v8, 24, v8
130 ; LOOP-NEXT:    v_lshrrev_b32_e32 v22, 16, v9
131 ; LOOP-NEXT:    v_bfe_u32 v23, v9, 8, 8
132 ; LOOP-NEXT:    buffer_store_byte v9, v[6:7], s[0:3], 0 addr64 offset:12
133 ; LOOP-NEXT:    s_waitcnt expcnt(0)
134 ; LOOP-NEXT:    v_lshrrev_b32_e32 v9, 24, v9
135 ; LOOP-NEXT:    v_lshrrev_b32_e32 v24, 16, v10
136 ; LOOP-NEXT:    v_bfe_u32 v25, v10, 8, 8
137 ; LOOP-NEXT:    buffer_store_byte v10, v[6:7], s[0:3], 0 addr64 offset:16
138 ; LOOP-NEXT:    s_waitcnt expcnt(0)
139 ; LOOP-NEXT:    v_lshrrev_b32_e32 v10, 24, v10
140 ; LOOP-NEXT:    v_lshrrev_b32_e32 v26, 16, v11
141 ; LOOP-NEXT:    v_bfe_u32 v27, v11, 8, 8
142 ; LOOP-NEXT:    buffer_store_byte v11, v[6:7], s[0:3], 0 addr64 offset:20
143 ; LOOP-NEXT:    s_waitcnt expcnt(0)
144 ; LOOP-NEXT:    v_lshrrev_b32_e32 v11, 24, v11
145 ; LOOP-NEXT:    v_lshrrev_b32_e32 v28, 16, v12
146 ; LOOP-NEXT:    v_bfe_u32 v29, v12, 8, 8
147 ; LOOP-NEXT:    buffer_store_byte v12, v[6:7], s[0:3], 0 addr64 offset:24
148 ; LOOP-NEXT:    s_waitcnt expcnt(0)
149 ; LOOP-NEXT:    v_lshrrev_b32_e32 v12, 24, v12
150 ; LOOP-NEXT:    v_lshrrev_b32_e32 v30, 16, v13
151 ; LOOP-NEXT:    v_bfe_u32 v31, v13, 8, 8
152 ; LOOP-NEXT:    buffer_store_byte v13, v[6:7], s[0:3], 0 addr64 offset:28
153 ; LOOP-NEXT:    s_waitcnt expcnt(0)
154 ; LOOP-NEXT:    v_lshrrev_b32_e32 v13, 24, v13
155 ; LOOP-NEXT:    buffer_store_byte v15, v[6:7], s[0:3], 0 addr64 offset:1
156 ; LOOP-NEXT:    buffer_store_byte v14, v[6:7], s[0:3], 0 addr64 offset:2
157 ; LOOP-NEXT:    buffer_store_byte v16, v[6:7], s[0:3], 0 addr64 offset:3
158 ; LOOP-NEXT:    buffer_store_byte v18, v[6:7], s[0:3], 0 addr64 offset:5
159 ; LOOP-NEXT:    buffer_store_byte v17, v[6:7], s[0:3], 0 addr64 offset:6
160 ; LOOP-NEXT:    buffer_store_byte v19, v[6:7], s[0:3], 0 addr64 offset:7
161 ; LOOP-NEXT:    buffer_store_byte v21, v[6:7], s[0:3], 0 addr64 offset:9
162 ; LOOP-NEXT:    buffer_store_byte v20, v[6:7], s[0:3], 0 addr64 offset:10
163 ; LOOP-NEXT:    buffer_store_byte v8, v[6:7], s[0:3], 0 addr64 offset:11
164 ; LOOP-NEXT:    buffer_store_byte v23, v[6:7], s[0:3], 0 addr64 offset:13
165 ; LOOP-NEXT:    buffer_store_byte v22, v[6:7], s[0:3], 0 addr64 offset:14
166 ; LOOP-NEXT:    buffer_store_byte v9, v[6:7], s[0:3], 0 addr64 offset:15
167 ; LOOP-NEXT:    buffer_store_byte v25, v[6:7], s[0:3], 0 addr64 offset:17
168 ; LOOP-NEXT:    buffer_store_byte v24, v[6:7], s[0:3], 0 addr64 offset:18
169 ; LOOP-NEXT:    buffer_store_byte v10, v[6:7], s[0:3], 0 addr64 offset:19
170 ; LOOP-NEXT:    buffer_store_byte v27, v[6:7], s[0:3], 0 addr64 offset:21
171 ; LOOP-NEXT:    buffer_store_byte v26, v[6:7], s[0:3], 0 addr64 offset:22
172 ; LOOP-NEXT:    buffer_store_byte v11, v[6:7], s[0:3], 0 addr64 offset:23
173 ; LOOP-NEXT:    buffer_store_byte v29, v[6:7], s[0:3], 0 addr64 offset:25
174 ; LOOP-NEXT:    buffer_store_byte v28, v[6:7], s[0:3], 0 addr64 offset:26
175 ; LOOP-NEXT:    buffer_store_byte v12, v[6:7], s[0:3], 0 addr64 offset:27
176 ; LOOP-NEXT:    buffer_store_byte v31, v[6:7], s[0:3], 0 addr64 offset:29
177 ; LOOP-NEXT:    buffer_store_byte v30, v[6:7], s[0:3], 0 addr64 offset:30
178 ; LOOP-NEXT:    buffer_store_byte v13, v[6:7], s[0:3], 0 addr64 offset:31
179 ; LOOP-NEXT:    s_cbranch_vccnz .LBB0_1
180 ; LOOP-NEXT:  ; %bb.2: ; %memcpy-split
181 ; LOOP-NEXT:    s_mov_b32 s2, 0
182 ; LOOP-NEXT:    s_mov_b32 s3, 0xf000
183 ; LOOP-NEXT:    s_mov_b64 s[0:1], 0
184 ; LOOP-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:33
185 ; LOOP-NEXT:    buffer_load_ubyte v5, v[2:3], s[0:3], 0 addr64 offset:35
186 ; LOOP-NEXT:    buffer_load_ubyte v6, v[2:3], s[0:3], 0 addr64 offset:34
187 ; LOOP-NEXT:    buffer_load_ubyte v2, v[2:3], s[0:3], 0 addr64 offset:32
188 ; LOOP-NEXT:    s_waitcnt vmcnt(3)
189 ; LOOP-NEXT:    v_lshlrev_b32_e32 v3, 8, v4
190 ; LOOP-NEXT:    s_waitcnt vmcnt(2)
191 ; LOOP-NEXT:    v_lshlrev_b32_e32 v4, 24, v5
192 ; LOOP-NEXT:    s_waitcnt vmcnt(1)
193 ; LOOP-NEXT:    v_lshlrev_b32_e32 v5, 16, v6
194 ; LOOP-NEXT:    s_waitcnt vmcnt(0)
195 ; LOOP-NEXT:    v_or_b32_e32 v2, v3, v2
196 ; LOOP-NEXT:    v_or_b32_e32 v3, v4, v5
197 ; LOOP-NEXT:    v_or_b32_e32 v2, v3, v2
198 ; LOOP-NEXT:    v_lshrrev_b32_e32 v3, 16, v2
199 ; LOOP-NEXT:    v_bfe_u32 v4, v2, 8, 8
200 ; LOOP-NEXT:    buffer_store_byte v2, v[0:1], s[0:3], 0 addr64 offset:32
201 ; LOOP-NEXT:    s_waitcnt expcnt(0)
202 ; LOOP-NEXT:    v_lshrrev_b32_e32 v2, 24, v2
203 ; LOOP-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:33
204 ; LOOP-NEXT:    buffer_store_byte v3, v[0:1], s[0:3], 0 addr64 offset:34
205 ; LOOP-NEXT:    buffer_store_byte v2, v[0:1], s[0:3], 0 addr64 offset:35
206 ; LOOP-NEXT:    s_endpgm
208 ; UNROLL-LABEL: memcpy_p1i8:
209 ; UNROLL:       ; %bb.0:
210 ; UNROLL-NEXT:    s_mov_b32 s2, 0
211 ; UNROLL-NEXT:    s_mov_b32 s3, 0xf000
212 ; UNROLL-NEXT:    s_mov_b64 s[0:1], 0
213 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64
214 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
215 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64
216 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
217 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:1
218 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
219 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:1
220 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
221 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:2
222 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
223 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:2
224 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
225 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:3
226 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
227 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:3
228 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
229 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:4
230 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
231 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:4
232 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
233 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:5
234 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
235 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:5
236 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
237 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:6
238 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
239 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:6
240 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
241 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:7
242 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
243 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:7
244 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
245 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:8
246 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
247 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:8
248 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
249 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:9
250 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
251 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:9
252 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
253 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:10
254 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
255 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:10
256 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
257 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:11
258 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
259 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:11
260 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
261 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:12
262 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
263 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:12
264 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
265 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:13
266 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
267 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:13
268 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
269 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:14
270 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
271 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:14
272 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
273 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:15
274 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
275 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:15
276 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
277 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:16
278 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
279 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:16
280 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
281 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:17
282 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
283 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:17
284 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
285 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:18
286 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
287 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:18
288 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
289 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:19
290 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
291 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:19
292 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
293 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:20
294 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
295 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:20
296 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
297 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:21
298 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
299 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:21
300 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
301 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:22
302 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
303 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:22
304 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
305 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:23
306 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
307 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:23
308 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
309 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:24
310 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
311 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:24
312 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
313 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:25
314 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
315 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:25
316 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
317 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:26
318 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
319 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:26
320 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
321 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:27
322 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
323 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:27
324 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
325 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:28
326 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
327 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:28
328 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
329 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:29
330 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
331 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:29
332 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
333 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:30
334 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
335 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:30
336 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
337 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:31
338 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
339 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:31
340 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
341 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:32
342 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
343 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:32
344 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
345 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:33
346 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
347 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:33
348 ; UNROLL-NEXT:    s_waitcnt expcnt(0)
349 ; UNROLL-NEXT:    buffer_load_ubyte v4, v[2:3], s[0:3], 0 addr64 offset:34
350 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
351 ; UNROLL-NEXT:    buffer_store_byte v4, v[0:1], s[0:3], 0 addr64 offset:34
352 ; UNROLL-NEXT:    buffer_load_ubyte v2, v[2:3], s[0:3], 0 addr64 offset:35
353 ; UNROLL-NEXT:    s_waitcnt vmcnt(0)
354 ; UNROLL-NEXT:    buffer_store_byte v2, v[0:1], s[0:3], 0 addr64 offset:35
355 ; UNROLL-NEXT:    s_endpgm
356   call void @llvm.memcpy.p1.p1.i32(ptr addrspace(1) %dst, ptr addrspace(1) %src, i32 36, i1 false)
357   ret void