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