Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/design.md

Large diffs are not rendered by default.

17 changes: 14 additions & 3 deletions runtime/test/shaders/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,30 @@ def barycentric_fallback():
return False


def asm_mattr(path):
def asm_header_value(path, key):
"""The value of "; <key>: <value>" in a fixture's leading comment lines, or None."""
for ln in Path(path).read_text(encoding="utf-8").splitlines():
s = ln.strip()
if not s:
continue
if not s.startswith(";"):
break
m = re.match(r";\s*mattr:\s*(\S+)", s)
m = re.match(r";\s*" + key + r":\s*(\S+)", s)
if m:
return m.group(1)
return None


def asm_mattr(path):
return asm_header_value(path, "mattr")


def asm_mcpu(path):
"""llvm-mc's -mcpu for a fixture: gfx1013, or "; mcpu: <cpu>" for one that needs another target (GFX10.3-only
instructions such as global_atomic_csub, which gfx1013 rejects)."""
return asm_header_value(path, "mcpu") or "gfx1013"


CLIP_CASES = {"vs_clip": 1, "vs_clip_param4": 4, "vs_clip_undeclared": 1}


Expand Down Expand Up @@ -156,7 +167,7 @@ def translate_tests(work, names):
if shift and n.startswith("cs_"):
raw = shift_user_data(raw, shift)
mattr = asm_mattr(asm_path)
cmd = MC + ["-triple=amdgcn--amdpal", "-mcpu=gfx1013"]
cmd = MC + ["-triple=amdgcn--amdpal", f"-mcpu={asm_mcpu(asm_path)}"]
if n in CLIP_CASES:
cmd.append(f"-defsym=PARAM_SLOT={CLIP_CASES[n]}")
if mattr:
Expand Down
11 changes: 8 additions & 3 deletions runtime/test/shaders/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ def not_found_message(build, missing):
"cs_w32_partial_scmp", "cs_w32_partial_permute", "cs_exec_const", "cs_w32_mask_imm", "cs_w32_int_ext",
"cs_w32_salu64", "cs_w32_misc_ext", "cs_w32_new_ops", "cs_w32_sincos", "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_lds_atomics_ext", "cs_w32_andn2_exec",
"cs_mask_vgpr_exec", "cs_w32_buffer_sub16", "cs_w32_buffer_store_sub", "cs_w32_fcmpswap", "cs_w32_permlane_fi",
"cs_w32_exec_computed")
"cs_w32_exec_computed", "cs_w32_csub_ext")
# Wave32 lane-mask dumps: their EXEC/VCC masks and lane selects cover 32 lanes, so a device whose widest subgroup is
# narrower (Mesa llvmpipe: 8) can't produce their words. They are skipped there, as ps_bitmask_perm is. They run with
# 32 lanes requested (WAVE32_LANE_ENV), as run_gpu_tests.py does: a device with a range like 8..32 (Intel ANV) may
# otherwise pick a narrower size and return different words (#774).
WAVE32_LANE_ENV = {"VKC_SUBGROUP_SIZE": "32"}
WAVE32_LANE_DUMPS = ("cs_wqm_w32", "cs_w32_lane_wrap", "cs_w32_permute", "cs_bpermute32", "cs_w32_partial_scmp", "cs_w32_partial_permute", "cs_exec_const",
"cs_w32_mask_imm", "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_lds_atomics_ext", "cs_w32_andn2_exec", "cs_mask_vgpr_exec", "cs_w32_permlane_fi",
"cs_w32_exec_computed")
"cs_w32_exec_computed", "cs_w32_csub_ext")
CS_DPP = [("cs_dpp", [1, 0, 3, 2, 5, 4, 7, 6]),
("cs_dpp_row", [0, 0, 1, 2, 3, 4, 5, 6]),
("cs_dpp_mask", [1, 0, 3, 2, 0xeeeeeeee, 0xeeeeeeee, 0xeeeeeeee, 0xeeeeeeee]),
Expand Down Expand Up @@ -149,6 +149,8 @@ def not_found_message(build, missing):
("cs_w32_buffer_sub16", [0xBEEF00AA, 0x00AA1234, 0xBEEFFFAA, 0xFFAA1234, 0xBEEF8899, 0x88991234, 0x1122CD44, 0xABCD7788]),
# ds_cmpst_f32 and buffer_atomic_fcmpswap: float compare (cs_w32_fcmpswap.asm)
("cs_w32_fcmpswap", [0, 0x3F800000, 0x7FC00000, 0x3F800000, 0x80000000, 0x40400000, 0x3F800000, 0x7FC00000]),
# global/buffer_atomic_csub: inactive lanes on a trap word, buffer elements past the V# range (cs_w32_csub_ext.asm)
("cs_w32_csub_ext", [0xAAAAAAAA, 0x77770054, 0x023005C8, 0xAAAAAAAA, 0x55550012, 0x0019001E, 0x00990000, 0x00AB0003]),
("cs_w32_new_ops", [0x55, 0x8001, 0xC0000000, 0x80014000, 0x4000FFFF, 0x77, 0x99, 0x1234]),
("cs_w32_misc_ext", [0x0FFF0FFF, 0xE2C4A688, 0x0007FFFF, 0x7FFF8000, 0xFFFE0002, 0xFFFF0005, 0x509, 0xCAFEF00D]),
("cs_w32_salu64", [0x1E6A2C48, 0x1234, 0xFFFFFFFF, 0x100, 47, 48, 0xFFFF8000, 0xFFFFFFFE]),
Expand Down Expand Up @@ -344,7 +346,10 @@ def not_found_message(build, missing):
GLOBAL_OFFSET = [("cs_global_neg_offset", "40", [0x5EED1FFC, 0x8BAD1800, 0x5EED1FF0, 0x5EED1FF4,
0x0000009E, 0xFFFF8BAD, 0x57023FFC, 0xEEEEEEEE]),
# global/buffer atomics, 8/16-bit global stores and d16 loads with CPU-only checks until now
("cs_global_mem_ext", "40", [0x5, 0xC, 0x977, 0xFFF00000, 0xEDCB5678, 0xEF332211, 0x887766BE, 0xFF801234])]
("cs_global_mem_ext", "40", [0x5, 0xC, 0x977, 0xFFF00000, 0xEDCB5678, 0xEF332211, 0x887766BE, 0xFF801234]),
# global/buffer_atomic_csub: the clamp at 0, glc, and 32 lanes on one dword (cases in the .asm header)
("cs_global_csub", "40", [0x10070905, 0x0D070000, 0x00630064, 0x80000000, 0x00000000,
0xFFFFFFFE, 0x000C0500, 0x01D800D2])]
# cs_heap_init.asm: vk_compute_test's VKC_HEAP_INIT copies this file (zeros, then four words at 0x100) to the start
# of the heap; the shader copies the four words to 0, and out[4..7] are the file's zeros, not the 0xEE fill.
HEAP_INIT_WORDS = [0x1BADB002, 0xCAFEF00D, 0x80000001, 0x0000FFFF]
Expand Down
138 changes: 138 additions & 0 deletions runtime/test/shaders/cs_global_csub.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
; mcpu: gfx1030
; mattr: +wavefrontsize32,-wavefrontsize64
; global_atomic_csub and buffer_atomic_csub (GFX10.3): tmp = M; M = (DATA > tmp) ? 0 : tmp - DATA, unsigned, a
; subtract clamped at 0 that never wraps; with glc the old M comes back (docs/design.md, measured on gfx1036 by #3193).
; gfx1013 has neither instruction, so this file is assembled for gfx1030 (the "; mcpu:" line above). llvm-mc takes
; global_atomic_csub with a destination only with glc; without glc it has none.
; Run with 40 groups (vk_compute_test cs_global_csub.spv 40 dump): the heap is 40 * 256 = 0x2800 bytes, global
; addresses are heap offsets (s[20:21] = P = 0x2000, v30 = 0), as in cs_global_mem_ext. Wave32, 64 threads a group.
; 1. Group 0 thread 0 seeds 12 dwords through the V# in s[0:3]; then every thread meets at s_barrier.
; P+0x00 5 P+0x04 9 P+0x08 100 P+0x0c 0x80000000 P+0x10 0xffffffff P+0x14 7 P+0x18 0x10
; P+0x1c 2 P+0x20 20 P+0x24 0 P+0x28 0 P+0x2c 1000
; 2. Contention, the 32 lanes of group 0's first wave at once:
; global_atomic_csub glc of 1 at P+0x20 (20): the old values are 20, 19, ..., 1 and then 0 twelve times; M ends
; at 0. Each lane adds its old value to P+0x24 (sum 210) and adds 1 to P+0x28 when it got 0 (12).
; global_atomic_csub without glc of lane + 1 at P+0x2c (1000): 1 + ... + 32 = 528 never reaches 0, M = 472.
; A subtract that wraps would leave 0xfffffff4 at P+0x20; one that is not atomic would lose updates.
; Then every thread meets at s_barrier again.
; 3. Group 0 thread 0, one case each (old value with glc, then M after):
; A global glc 7 at P+0x00 (5): old 5, M 0 (DATA > M) B global glc 9 at P+0x04 (9): old 9, M 0 (DATA == M)
; C global glc 1 at P+0x08 (100): old 100, M 99 D global glc 0xffffffff at P+0x0c: old 0x80000000, M 0
; (a subtract without the clamp leaves 0x80000000 - 0xffffffff = 0x80000001)
; E global, no glc, 1 at P+0x10 (0xffffffff): M 0xfffffffe (a signed compare reads 1 > -1 and leaves 0)
; F global glc 0 at P+0x14 (7): old 7, M 7 G buffer glc 3 at 0x2018 (0x10): old 0x10, M 0xd
; H buffer, no glc, 5 at 0x201c (2): M 0, and its data register keeps 5
; vk_compute_test dumps out[0..7], so the small values are packed a byte or a half each (a wrong value spills into
; its neighbours, which still shows):
; out[0] = A old | B old << 8 | F old << 16 | G old << 24 = 0x10070905
; out[1] = A M | B M << 8 | F M << 16 | G M << 24 = 0x0d070000
; out[2] = C old | C M << 16 = 0x00630064
; out[3] = D old = 0x80000000
; out[4] = D M = 0x00000000
; out[5] = E M = 0xfffffffe
; out[6] = H M | H data register << 8 | lanes that got 0 << 16 | P+0x20 after << 24 = 0x000c0500
; out[7] = sum of the old values | P+0x2c after << 16 = 0x01d800d2
s_mov_b32 s40, exec_lo
v_or_b32_e32 v1, s4, v0
v_cmpx_eq_u32_e32 0, v1
v_mov_b32_e32 v2, 0x2000
v_mov_b32_e32 v1, 5
buffer_store_dword v1, v2, s[0:3], 0 offen offset:0
v_mov_b32_e32 v1, 9
buffer_store_dword v1, v2, s[0:3], 0 offen offset:4
v_mov_b32_e32 v1, 0x64
buffer_store_dword v1, v2, s[0:3], 0 offen offset:8
v_bfrev_b32_e32 v1, 1
buffer_store_dword v1, v2, s[0:3], 0 offen offset:12
v_mov_b32_e32 v1, -1
buffer_store_dword v1, v2, s[0:3], 0 offen offset:16
v_mov_b32_e32 v1, 7
buffer_store_dword v1, v2, s[0:3], 0 offen offset:20
v_mov_b32_e32 v1, 0x10
buffer_store_dword v1, v2, s[0:3], 0 offen offset:24
v_mov_b32_e32 v1, 2
buffer_store_dword v1, v2, s[0:3], 0 offen offset:28
v_mov_b32_e32 v1, 20
buffer_store_dword v1, v2, s[0:3], 0 offen offset:32
v_mov_b32_e32 v1, 0
buffer_store_dword v1, v2, s[0:3], 0 offen offset:36
buffer_store_dword v1, v2, s[0:3], 0 offen offset:40
v_mov_b32_e32 v1, 0x3e8
buffer_store_dword v1, v2, s[0:3], 0 offen offset:44
s_waitcnt vmcnt(0)
s_mov_b32 exec_lo, s40
s_barrier
s_mov_b32 s20, 0x2000
s_mov_b32 s21, 0
v_lshrrev_b32_e32 v1, 5, v0
v_or_b32_e32 v1, s4, v1
v_cmpx_eq_u32_e32 0, v1
v_mov_b32_e32 v30, 0
v_mov_b32_e32 v3, 1
global_atomic_csub v10, v30, v3, s[20:21] offset:32 glc
s_waitcnt vmcnt(0)
global_atomic_add v30, v10, s[20:21] offset:36
v_cmp_eq_u32_e32 vcc_lo, 0, v10
v_cndmask_b32_e64 v11, 0, 1, vcc_lo
global_atomic_add v30, v11, s[20:21] offset:40
v_add_nc_u32_e32 v12, 1, v0
global_atomic_csub v30, v12, s[20:21] offset:44
s_waitcnt vmcnt(0)
s_mov_b32 exec_lo, s40
s_barrier
v_or_b32_e32 v1, s4, v0
v_cmpx_eq_u32_e32 0, v1
v_mov_b32_e32 v30, 0
v_mov_b32_e32 v3, 7
global_atomic_csub v20, v30, v3, s[20:21] glc
v_mov_b32_e32 v3, 9
global_atomic_csub v21, v30, v3, s[20:21] offset:4 glc
v_mov_b32_e32 v3, 1
global_atomic_csub v22, v30, v3, s[20:21] offset:8 glc
v_mov_b32_e32 v3, -1
global_atomic_csub v23, v30, v3, s[20:21] offset:12 glc
v_mov_b32_e32 v3, 1
global_atomic_csub v30, v3, s[20:21] offset:16
v_mov_b32_e32 v3, 0
global_atomic_csub v24, v30, v3, s[20:21] offset:20 glc
v_mov_b32_e32 v25, 3
v_mov_b32_e32 v2, 0x2018
buffer_atomic_csub v25, v2, s[0:3], 0 offen glc
v_mov_b32_e32 v26, 5
v_mov_b32_e32 v2, 0x201c
buffer_atomic_csub v26, v2, s[0:3], 0 offen
s_waitcnt vmcnt(0)
global_load_dword v40, v30, s[20:21]
global_load_dword v41, v30, s[20:21] offset:4
global_load_dword v42, v30, s[20:21] offset:8
global_load_dword v43, v30, s[20:21] offset:12
global_load_dword v44, v30, s[20:21] offset:16
global_load_dword v45, v30, s[20:21] offset:20
global_load_dword v46, v30, s[20:21] offset:24
global_load_dword v47, v30, s[20:21] offset:28
global_load_dword v48, v30, s[20:21] offset:32
global_load_dword v49, v30, s[20:21] offset:36
global_load_dword v50, v30, s[20:21] offset:40
global_load_dword v51, v30, s[20:21] offset:44
s_waitcnt vmcnt(0)
v_lshl_or_b32 v60, v21, 8, v20
v_lshl_or_b32 v60, v24, 16, v60
v_lshl_or_b32 v60, v25, 24, v60
v_lshl_or_b32 v61, v41, 8, v40
v_lshl_or_b32 v61, v45, 16, v61
v_lshl_or_b32 v61, v46, 24, v61
v_lshl_or_b32 v62, v42, 16, v22
v_lshl_or_b32 v66, v26, 8, v47
v_lshl_or_b32 v66, v50, 16, v66
v_lshl_or_b32 v66, v48, 24, v66
v_lshl_or_b32 v67, v51, 16, v49
v_mov_b32_e32 v2, 0
buffer_store_dword v60, v2, s[0:3], 0 offen offset:0
buffer_store_dword v61, v2, s[0:3], 0 offen offset:4
buffer_store_dword v62, v2, s[0:3], 0 offen offset:8
buffer_store_dword v23, v2, s[0:3], 0 offen offset:12
buffer_store_dword v43, v2, s[0:3], 0 offen offset:16
buffer_store_dword v44, v2, s[0:3], 0 offen offset:20
buffer_store_dword v66, v2, s[0:3], 0 offen offset:24
buffer_store_dword v67, v2, s[0:3], 0 offen offset:28
s_endpgm
140 changes: 140 additions & 0 deletions runtime/test/shaders/cs_w32_csub_ext.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
; mcpu: gfx1030
; mattr: +wavefrontsize32,-wavefrontsize64
; group: 32,1,1
; global_atomic_csub and buffer_atomic_csub (GFX10.3), the cases cs_global_csub.asm leaves out: inactive lanes aimed
; at a trap word, and buffer_atomic_csub on an element past the V# range. The operation is
; tmp = M; M = (DATA > tmp) ? 0 : tmp - DATA, unsigned, with glc returning tmp (docs/design.md, global_atomic_csub
; row). A dropped atomic leaves memory alone; an active glc lane then gets 0 and an inactive lane keeps vdst/vdata
; (docs/design.md, "Atomic natural alignment" row, measured on gfx1036). An element is in range when
; O + 4 <= num_records under OOB_SELECT 3 (docs/design.md, "Buffer bounds checking" row).
; gfx1013 has neither instruction, so this file is assembled for gfx1030. One wave32 group (32 threads); the heap is
; the 256-byte output buffer and global addresses are heap offsets (s[20:21] = 0x40).
; 1. Lane 0 seeds through the V# in s[0:3]:
; 0x40 A_g 100 0x44 T_g 0x7777 0x48 S_g 0 0x4c S_b 0 0x50 A_b 50 0x54 T_b 0x5555
; 0x58 K_g 0 0x5c K_b 0 0x80 0 0x84 30 0x88 0x99 0x8c 0xab
; 2. All 32 lanes set up their operands; even lanes aim at A_g/A_b and odd lanes at the trap words T_g/T_b
; (address + 4 * (lane & 1)). Then EXEC = 0x55555555 (the 16 even lanes):
; global_atomic_csub glc, DATA 1, vdst preset to 0xc5b00000 | lane: A_g 100 -> 84, old values 100..85 in some
; order, sum 1480 = 0x5c8, added to S_g by the same lanes.
; buffer_atomic_csub glc, DATA 2 (vdata = 2): A_b 50 -> 18, old values 50, 48, ..., 20, sum 560 = 0x230, added
; to S_b.
; The odd lanes do nothing: T_g and T_b keep their seeds, and their vdst / vdata keep 0xc5b00000 | lane / 2.
; With EXEC back to all 32 lanes, each lane whose register still holds its preset value ORs 1 << lane into K_g
; (global vdst) or K_b (buffer vdata): only the odd lanes, 0xaaaaaaaa, for both forms. A lane whose old value were
; not returned would set its even bit too (0xffffffff); an inactive lane given 0 would clear its odd bit. (An
; atomic OR, not VCC copied into a VGPR: the translator keeps a lane mask as one bit per lane, so v_mov_b32 of it
; reads this lane's bit; docs/design.md, "Whole-wave masks" row.)
; 3. Lane 0, through a V# in s[8:11] of base 0x80, stride 0, num_records 8, word3 0x31016fac (OOB_SELECT 3, as
; cs_bounds.asm), so offsets 0 and 4 are in range and 8 and 12 are not:
; B1 offset 4, glc, DATA 5: in range, M at 0x84 30 -> 25, vdata 30
; B2 offset 8, glc, DATA 1: out of range, 0x88 keeps 0x99, vdata 0
; B3 offset 12, no glc, DATA 3: out of range, 0x8c keeps 0xab, vdata keeps 3
; out[0..7] (two values a word where they fit, so a wrong one still shows):
; out[0] = K_g, the lanes whose vdst still holds its preset = 0xaaaaaaaa
; out[1] = A_g after | T_g after << 16 = 0x77770054
; out[2] = S_g | S_b << 16 = 0x023005c8
; out[3] = K_b, the lanes whose vdata still holds its preset = 0xaaaaaaaa
; out[4] = A_b after | T_b after << 16 = 0x55550012
; out[5] = B1 vdata | 0x84 after << 16 = 0x0019001e
; out[6] = B2 vdata | 0x88 after << 16 = 0x00990000
; out[7] = B3 vdata | 0x8c after << 16 = 0x00ab0003
; Run: vk_compute_test cs_w32_csub_ext.spv 1 dump -> out[0..7] = 2863311530 2004287572 36701640 2863311530
; 1431633938 1638430 10027008 11206659
s_mov_b32 s40, exec_lo
v_cmpx_eq_u32_e32 0, v0
v_mov_b32_e32 v2, 0
v_mov_b32_e32 v1, 0x64
buffer_store_dword v1, v2, s[0:3], 0 offen offset:64
v_mov_b32_e32 v1, 0x7777
buffer_store_dword v1, v2, s[0:3], 0 offen offset:68
v_mov_b32_e32 v1, 0
buffer_store_dword v1, v2, s[0:3], 0 offen offset:72
buffer_store_dword v1, v2, s[0:3], 0 offen offset:76
buffer_store_dword v1, v2, s[0:3], 0 offen offset:128
v_mov_b32_e32 v1, 0x32
buffer_store_dword v1, v2, s[0:3], 0 offen offset:80
v_mov_b32_e32 v1, 0x5555
buffer_store_dword v1, v2, s[0:3], 0 offen offset:84
v_mov_b32_e32 v1, 0
buffer_store_dword v1, v2, s[0:3], 0 offen offset:88
buffer_store_dword v1, v2, s[0:3], 0 offen offset:92
v_mov_b32_e32 v1, 30
buffer_store_dword v1, v2, s[0:3], 0 offen offset:132
v_mov_b32_e32 v1, 0x99
buffer_store_dword v1, v2, s[0:3], 0 offen offset:136
v_mov_b32_e32 v1, 0xab
buffer_store_dword v1, v2, s[0:3], 0 offen offset:140
s_waitcnt vmcnt(0)
s_mov_b32 exec_lo, s40
s_barrier
s_mov_b32 s20, 0x40
s_mov_b32 s21, 0
v_and_b32_e32 v1, 1, v0
v_lshlrev_b32_e32 v2, 2, v1
v_add_nc_u32_e32 v4, 0x50, v2
v_mov_b32_e32 v3, 1
v_or_b32_e32 v10, 0xc5b00000, v0
v_mov_b32_e32 v11, 2
s_mov_b32 exec_lo, 0x55555555
global_atomic_csub v10, v2, v3, s[20:21] glc
buffer_atomic_csub v11, v4, s[0:3], 0 offen glc
s_waitcnt vmcnt(0)
global_atomic_add v2, v10, s[20:21] offset:8
global_atomic_add v2, v11, s[20:21] offset:12
s_waitcnt vmcnt(0)
s_mov_b32 exec_lo, s40
v_mov_b32_e32 v30, 0
v_or_b32_e32 v12, 0xc5b00000, v0
v_cmp_eq_u32_e32 vcc_lo, v12, v10
v_cndmask_b32_e64 v13, 0, 1, vcc_lo
v_lshlrev_b32_e32 v13, v0, v13
global_atomic_or v30, v13, s[20:21] offset:24
v_cmp_eq_u32_e32 vcc_lo, 2, v11
v_cndmask_b32_e64 v14, 0, 1, vcc_lo
v_lshlrev_b32_e32 v14, v0, v14
global_atomic_or v30, v14, s[20:21] offset:28
s_waitcnt vmcnt(0)
s_barrier
v_cmpx_eq_u32_e32 0, v0
s_mov_b32 s8, 0x80
s_mov_b32 s9, 0
s_mov_b32 s10, 8
s_mov_b32 s11, 0x31016fac
v_mov_b32_e32 v5, 4
v_mov_b32_e32 v20, 5
buffer_atomic_csub v20, v5, s[8:11], 0 offen glc
v_mov_b32_e32 v5, 8
v_mov_b32_e32 v21, 1
buffer_atomic_csub v21, v5, s[8:11], 0 offen glc
v_mov_b32_e32 v5, 12
v_mov_b32_e32 v22, 3
buffer_atomic_csub v22, v5, s[8:11], 0 offen
s_waitcnt vmcnt(0)
global_load_dword v40, v30, s[20:21]
global_load_dword v41, v30, s[20:21] offset:4
global_load_dword v42, v30, s[20:21] offset:8
global_load_dword v43, v30, s[20:21] offset:12
global_load_dword v44, v30, s[20:21] offset:16
global_load_dword v45, v30, s[20:21] offset:20
global_load_dword v46, v30, s[20:21] offset:68
global_load_dword v47, v30, s[20:21] offset:72
global_load_dword v48, v30, s[20:21] offset:76
global_load_dword v60, v30, s[20:21] offset:24
global_load_dword v63, v30, s[20:21] offset:28
s_waitcnt vmcnt(0)
v_lshl_or_b32 v61, v41, 16, v40
v_lshl_or_b32 v62, v43, 16, v42
v_lshl_or_b32 v64, v45, 16, v44
v_lshl_or_b32 v65, v46, 16, v20
v_lshl_or_b32 v66, v47, 16, v21
v_lshl_or_b32 v67, v48, 16, v22
v_mov_b32_e32 v2, 0
buffer_store_dword v60, v2, s[0:3], 0 offen offset:0
buffer_store_dword v61, v2, s[0:3], 0 offen offset:4
buffer_store_dword v62, v2, s[0:3], 0 offen offset:8
buffer_store_dword v63, v2, s[0:3], 0 offen offset:12
buffer_store_dword v64, v2, s[0:3], 0 offen offset:16
buffer_store_dword v65, v2, s[0:3], 0 offen offset:20
buffer_store_dword v66, v2, s[0:3], 0 offen offset:24
buffer_store_dword v67, v2, s[0:3], 0 offen offset:28
s_endpgm
Loading
Loading