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
34 changes: 34 additions & 0 deletions docs/shader_validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2054,6 +2054,40 @@ Hardware validation was executed via `tools/hw_oracle` and `tools/salu_diff.py`
- **Constant operands under `op_sel` / `op_sel_hi`:** Integer constants under VOP3P are uniformly treated as 32-bit dwords `C`. When `op_sel[i] == 0`, bits `[15:0]` are selected; when `op_sel[i] == 1`, bits `[31:16]` are selected. Positive inline constants zero-extend (`5` → `0x00000005`: lo=`0x0005`, hi=`0x0000`; `64` → `0x00000040`: lo=`0x0040`, hi=`0x0000`). Negative inline constants sign-extend (`-1` → `0xFFFFFFFF`: lo=`0xFFFF`, hi=`0xFFFF`; `-16` → `0xFFFFFFF0`: lo=`0xFFF0`, hi=`0xFFFF`). 32-bit literals preserve their full dword (`0x12345678`: lo=`0x5678`, hi=`0x1234`; `0x80017fff`: lo=`0x7fff`, hi=`0x8001`). Float inline tokens (`0.5`, `1.0`, `-2.0`, `4.0`) assemble as their 32-bit IEEE 754 bit patterns (`1.0` → `0x3f800000`: lo=`0x0000`, hi=`0x3f80`).
- **`clamp` saturation:** Unsigned add/mad saturate to `0xFFFF`; unsigned sub saturates underflow to `0x0000`; signed add/sub/mad saturate to `[-32768, 32767]`.
- **Silicon vs Translator parity:** 380 of 380 kernels match bit-for-bit between native hardware and `tools/rdna2spirv.py` lowered to SPIR-V (0 mismatches, 0 wave32/wave64 differences).
### Vulkan GPU fixtures for `EXEC`-masked sdst, the global atomics, integer clamp, the mad flush and the f64 compares

Nine `runtime/test/shaders` fixtures (`cs_w32_sdst_exec`, `cs_global_atomic32_int`, `cs_global_atomic32_rtn`,
`cs_global_atomic32_float`, `cs_global_atomic32_x2`, `cs_w32_clamp32`, `cs_w32_clamp16`, `cs_w32_mad_denorm`,
`cs_w32_vcmp_f64`) close the last GPU holes of `docs/design.md` rows 218, 226, 265, 379/380 and 381. They are
wave32 dumps of eight words whose values are derived in each header, registered in `runtime/test/shaders/check.py`
and `scripts/run_gpu_tests.py`, and their `.s` fixtures are generated by `tests/semantic/regen_fixtures.py` from the
marked `.asm` sources; `tests/semantic/test_batch4_gpu_fixtures.py` runs
the same disassembly in the interpreter and keeps the header, `CS_DUMPS` and the runner table in step.

Run on the RDNA2 iGPU `gfx1036` through RADV (`RAPHAEL_MENDOCINO`, Mesa 27.0.0-devel, `MESA_VK_DEVICE_SELECT=1002:13c0!`):
9/9 fixtures and 72/72 words exact, through both `scripts/run_gpu_tests.py` (211/226 pass, 15 skipped, no failure) and
`runtime/test/shaders/check.py` (194/197 pass, 3 skipped). What each one measured:

- **`cs_w32_sdst_exec`** (`EXEC`-masked sdst): all eight carry/sign-out ops under `EXEC = 0xAAAAAAAA` with operands
that carry, borrow or sign-out on every lane give the sdst mask `0xAAAAAAAA` (word `272` = 16 lanes | 1 << 8).
- **`cs_global_atomic32_int` / `_rtn` / `_float` / `_x2`** (32-bit global atomics): add/sub/smin/umin/smax/umax/and/or;
xor/swap/inc/dec plus four `glc` returns; fmin/fmax on 1.0/2.0, a qNaN and -0/+0, and cmpswap hit and miss;
and/or/xor/swap_x2 on 8-byte elements. Note that `global_atomic_cmpswap` accepts `glc` only on the form with a
single VGPR destination (`v4, v[0:1], v[2:3], off glc`); that is the form whose returned old word the fixture reads.
- **`cs_w32_clamp32` / `cs_w32_clamp16`** (integer clamp): the three `*_nc_u32`, two `*_nc_i32` and two `*_nc_u16`
forms saturate as documented, `clamp` without overflow keeps the sum, and the six carry ops saturate D to
`0xFFFFFFFF`/`0` while sdst keeps the real carry (out[7] of `cs_w32_clamp32` and out[3..7] of `cs_w32_clamp16`).
- **`cs_w32_mad_denorm`** (denormal flush): `v_mad_f32`, `v_mac_f32`, `v_mad_legacy_f32` and `v_mac_legacy_f32`
return `0` for a subnormal operand scaled into range and for a subnormal product, with a `clamp` case and a
non-flushing control (`7.0`). These opcodes are GFX10.1-only, so this checks the translator's model on the Vulkan
path, not the native instruction.
- **`cs_w32_vcmp_f64`** (f64 compares): all 16 predicates in both forms in eight words, four per dword; `v_cmp_*_f64`
on -0.0 against +0.0 gives `0xC 0xC 0xC 0xC` and `v_cmpx_*_f64` on a qNaN against 1.0 gives `0 0 0xF 0xF`.

One translator gap the fixture worked around: the raw spelling `v_cmp_lt_f64 v[1:2], v[3:4]` (implicit VCC) is
rejected with `Unsupported: v_cmp destination`, while the assembler's printed form with `vcc_lo` translates; the
fixture spells the destination out, as a disassembled listing does.

### Pixel-shader ISA on the hardware (`tools/ps_oracle.py`, EGEN-TOOL-PS-ORACLE)

`tools/hw_oracle` only launches compute kernels, so what only a pixel shader has (`v_interp_*` and the parameter
Expand Down
26 changes: 23 additions & 3 deletions runtime/test/shaders/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,19 @@ 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_sdst_exec", "cs_global_atomic32_int", "cs_global_atomic32_rtn", "cs_global_atomic32_float", "cs_global_atomic32_x2", "cs_w32_clamp32", "cs_w32_clamp16", "cs_w32_mad_denorm", "cs_w32_vcmp_f64")
# 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",
# the sdst masks are 32 EXEC bits wide, and one wave must hold the only lane 0 (the
# atomics are not idempotent, so four 8-lane groups' lane 0s would race)
"cs_w32_sdst_exec", "cs_global_atomic32_int", "cs_global_atomic32_rtn",
"cs_global_atomic32_float", "cs_global_atomic32_x2")
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 @@ -204,7 +208,23 @@ def not_found_message(build, missing):
("cs_barrier_loop", [128, 96, 64, 32, 128, 96, 64, 0xEEEEEEEE]),
# SHADER-21 part 2: a mask copied to a VGPR with v_mov_b32 respects EXEC (inactive lanes keep the old VGPR)
("cs_mask_vgpr_exec", [0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,
0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF])]
0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF]),
# batch 4: sdst under a partial EXEC (derivations in cs_w32_sdst_exec.asm); each sdst is 0xAAAAAAAA,
# so the word is 16 set lanes | lowest lane 1 << 8
("cs_w32_sdst_exec", [272, 272, 272, 272, 272, 272, 272, 272]),
# 32-bit GLOBAL atomics, the 15 ops and the four _x2 forms (derivations in each .asm header)
("cs_global_atomic32_int", [0x80000004, 2, 0xFFFFFFFB, 3, 3, 0xFFFFFFFB, 0xF000F000, 0xFF0FFF0F]),
("cs_global_atomic32_rtn", [0xFFFFFFFF, 0xCAFEF00D, 6, 4, 0x11111111, 0x100, 0xF0F0, 0xAAAA]),
("cs_global_atomic32_float", [0x3F800000, 0x40000000, 0x40400000, 0, 0x43, 0x42, 0x55, 0x55]),
("cs_global_atomic32_x2", [0xF000F000, 0x0F0F0F0F, 0xFF0FFF0F, 0xFFFFFFFF,
0x55555555, 0xEDCBA987, 0xAAAABBBB, 0xCCCCDDDD]),
# integer clamp on the 32-bit VOP3 forms and the carry ops, then the 16-bit forms (#265)
("cs_w32_clamp32", [0xFFFFFFFF, 0, 0, 0x7FFFFFFF, 0x80000000, 3, 12, 0]),
("cs_w32_clamp16", [0xDEADFFFF, 0xDEAD0000, 0xDEAD0000, 0xFFFFFFFF, 0xFFFFFFFF, 0, 0, 0]),
# denormal flush in v_mad/v_mac_f32 and the legacy pair (#379 #380)
("cs_w32_mad_denorm", [0, 0, 0, 0, 0x40E00000, 0, 0, 0]),
# all 16 v_cmp/v_cmpx_*_f64 predicates, four per dword (#381)
("cs_w32_vcmp_f64", [0xC, 0xC, 0xC, 0xC, 0, 0, 0xF, 0xF])]
# num_records bounds check (cs_bounds.asm): one thread, so no 64-wide subgroup requirement.
# The SMEM and raw MUBUF rules measured on an RX 6800 (derivations in each .asm header): one thread too.
# Never run cs_smem_sload_neg with a translator that zero-extends the s_load immediate: it reads 4 GiB past the heap.
Expand Down
66 changes: 66 additions & 0 deletions runtime/test/shaders/cs_global_atomic32_float.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
; regen_fixtures: this source has a translator fixture in tests/semantic/fixtures/disasm
; The 32-bit float and compare-swap GLOBAL atomics (#226): fmin, fmax and cmpswap, hit and miss.
; Lane 0 of a wave32 group seeds six dwords through the output V# (base 0), runs the atomics through a global
; pointer (s[20:21] = 0, vaddr v1 = 0, so the address is the instruction offset), waits and reads them back:
; 0x40 fmin 1.0, 2.0 -> 1.0 (0x3F800000)
; 0x44 fmax 1.0, 2.0 -> 2.0 (0x40000000)
; 0x48 fmin qNaN (0x7FC00001), 3.0 -> 3.0 (NMin returns the non-NaN operand, no float-atomic extension)
; 0x4C fmax -0.0, +0.0 -> +0.0 (0x00000000; NMax ranks -0 below +0)
; 0x50 cmpswap 0x42 with DATA 0x43, CMP 0x42 -> hit: memory 0x43, vdst the old word 0x42
; 0x54 cmpswap 0x55 with DATA 0x43, CMP 0x44 -> miss: memory and vdst both 0x55
; The vdata pair is {DATA, CMP}: DATA in the low VGPR, the comparator in the next. Both cmpswap forms carry glc,
; which is where the returned old word comes from; the memory words are out[4] (hit) and out[6] (miss).
; out[0] = 0x40, out[1] = 0x44, out[2] = 0x48, out[3] = 0x4C, out[4] = 0x50, out[5] = 0x50's vdst,
; out[6] = 0x54, out[7] = 0x54's vdst.
; group: 32,1,1
; Run: VKC_SUBGROUP_SIZE=32 vk_compute_test cs_global_atomic32_float.spv 1 dump -> out[0..7] = 1065353216 1073741824 1077936128 0 67 66 85 85
; mattr: +wavefrontsize32,-wavefrontsize64
v_cmpx_eq_u32_e32 0, v0
v_mov_b32_e32 v11, 0
v_mov_b32_e32 v10, 0x3f800000
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x40
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x44
v_mov_b32_e32 v10, 0x7fc00001
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x48
v_mov_b32_e32 v10, 0x80000000
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x4c
v_mov_b32_e32 v10, 0x42
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x50
v_mov_b32_e32 v10, 0x55
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x54
s_waitcnt vmcnt(0)
s_waitcnt_vscnt null, 0x0
s_mov_b32 s20, 0
s_mov_b32 s21, 0
v_mov_b32 v1, 0
v_mov_b32 v2, 0x40000000
global_atomic_fmin v1, v2, s[20:21] offset:0x40
global_atomic_fmax v1, v2, s[20:21] offset:0x44
v_mov_b32 v2, 0x40400000
global_atomic_fmin v1, v2, s[20:21] offset:0x48
v_mov_b32 v2, 0
global_atomic_fmax v1, v2, s[20:21] offset:0x4c
v_mov_b32 v2, 0x43
v_mov_b32 v3, 0x42
global_atomic_cmpswap v4, v1, v[2:3], s[20:21] offset:0x50 glc
v_mov_b32 v2, 0x43
v_mov_b32 v3, 0x44
global_atomic_cmpswap v5, v1, v[2:3], s[20:21] offset:0x54 glc
s_waitcnt vmcnt(0)
s_waitcnt_vscnt null, 0x0
buffer_load_dword v6, v11, s[0:3], 0 offen offset:0x40
buffer_load_dword v7, v11, s[0:3], 0 offen offset:0x44
buffer_load_dword v8, v11, s[0:3], 0 offen offset:0x48
buffer_load_dword v9, v11, s[0:3], 0 offen offset:0x4c
buffer_load_dword v10, v11, s[0:3], 0 offen offset:0x50
buffer_load_dword v12, v11, s[0:3], 0 offen offset:0x54
s_waitcnt vmcnt(0)
buffer_store_dword v6, v11, s[0:3], 0 offen
buffer_store_dword v7, v11, s[0:3], 0 offen offset:4
buffer_store_dword v8, v11, s[0:3], 0 offen offset:8
buffer_store_dword v9, v11, s[0:3], 0 offen offset:12
buffer_store_dword v10, v11, s[0:3], 0 offen offset:16
buffer_store_dword v4, v11, s[0:3], 0 offen offset:20
buffer_store_dword v12, v11, s[0:3], 0 offen offset:24
buffer_store_dword v5, v11, s[0:3], 0 offen offset:28
s_endpgm
71 changes: 71 additions & 0 deletions runtime/test/shaders/cs_global_atomic32_int.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
; regen_fixtures: this source has a translator fixture in tests/semantic/fixtures/disasm
; The ten integer 32-bit GLOBAL atomics, memory result (#226): add, sub, smin, umin, smax, umax, and, or.
; Lane 0 of a wave32 group seeds eight dwords through the output V# (base 0), runs one atomic on each through a
; global pointer (s[20:21] = 0, vaddr v1 = 0, so the address is the instruction offset), waits, reads each dword
; back and stores it:
; 0x40 add 5 + 0x7FFFFFFF = 0x80000004
; 0x44 sub 5 - 3 = 2
; 0x48 smin 0xFFFFFFFB (-5), 3 = 0xFFFFFFFB (signed: -5 < 3)
; 0x4C umin 0xFFFFFFFB, 3 = 3 (unsigned: 3 < 0xFFFFFFFB)
; 0x50 smax 0xFFFFFFFB (-5), 3 = 3 (signed: 3 > -5)
; 0x54 umax 0xFFFFFFFB, 3 = 0xFFFFFFFB (unsigned)
; 0x58 and 0xF0F0F0F0 & 0xFF00FF00 = 0xF000F000
; 0x5C or 0x0F0F0F0F | 0xFF00FF00 = 0xFF0FFF0F
; The pairs above are what tells the signed and unsigned forms apart: the same operand pair gives opposite results.
; The `glc` returns and the other seven ops are in cs_global_atomic32_rtn.asm / cs_global_atomic32_float.asm.
; group: 32,1,1
; Run: VKC_SUBGROUP_SIZE=32 vk_compute_test cs_global_atomic32_int.spv 1 dump -> out[0..7] = 2147483652 2 4294967291 3 3 4294967291 4026593280 4279238415
; mattr: +wavefrontsize32,-wavefrontsize64
v_cmpx_eq_u32_e32 0, v0
v_mov_b32_e32 v11, 0
v_mov_b32_e32 v10, 5
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x40
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x44
v_mov_b32_e32 v10, 0xfffffffb
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x48
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x4c
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x50
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x54
v_mov_b32_e32 v10, 0xf0f0f0f0
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x58
v_mov_b32_e32 v10, 0x0f0f0f0f
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x5c
s_waitcnt vmcnt(0)
s_waitcnt_vscnt null, 0x0
s_mov_b32 s20, 0
s_mov_b32 s21, 0
v_mov_b32 v1, 0
v_mov_b32 v2, 0x7fffffff
global_atomic_add v1, v2, s[20:21] offset:0x40
v_mov_b32 v2, 3
global_atomic_sub v1, v2, s[20:21] offset:0x44
v_mov_b32 v2, 3
global_atomic_smin v1, v2, s[20:21] offset:0x48
global_atomic_umin v1, v2, s[20:21] offset:0x4c
global_atomic_smax v1, v2, s[20:21] offset:0x50
global_atomic_umax v1, v2, s[20:21] offset:0x54
v_mov_b32 v2, 0xff00ff00
global_atomic_and v1, v2, s[20:21] offset:0x58
global_atomic_or v1, v2, s[20:21] offset:0x5c
s_waitcnt vmcnt(0)
s_waitcnt_vscnt null, 0x0
buffer_load_dword v3, v11, s[0:3], 0 offen offset:0x40
buffer_load_dword v4, v11, s[0:3], 0 offen offset:0x44
buffer_load_dword v5, v11, s[0:3], 0 offen offset:0x48
buffer_load_dword v6, v11, s[0:3], 0 offen offset:0x4c
buffer_load_dword v7, v11, s[0:3], 0 offen offset:0x50
buffer_load_dword v8, v11, s[0:3], 0 offen offset:0x54
buffer_load_dword v9, v11, s[0:3], 0 offen offset:0x58
buffer_load_dword v10, v11, s[0:3], 0 offen offset:0x5c
s_waitcnt vmcnt(0)
v_cmpx_eq_u32_e32 0, v0
v_mov_b32_e32 v11, 0
buffer_store_dword v3, v11, s[0:3], 0 offen
buffer_store_dword v4, v11, s[0:3], 0 offen offset:4
buffer_store_dword v5, v11, s[0:3], 0 offen offset:8
buffer_store_dword v6, v11, s[0:3], 0 offen offset:12
buffer_store_dword v7, v11, s[0:3], 0 offen offset:16
buffer_store_dword v8, v11, s[0:3], 0 offen offset:20
buffer_store_dword v9, v11, s[0:3], 0 offen offset:24
buffer_store_dword v10, v11, s[0:3], 0 offen offset:28
s_endpgm
72 changes: 72 additions & 0 deletions runtime/test/shaders/cs_global_atomic32_rtn.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
; regen_fixtures: this source has a translator fixture in tests/semantic/fixtures/disasm
; The other 32-bit GLOBAL atomics (#226): xor, swap, inc, dec, and add/sub/xor/swap again in their returning
; (glc) form, whose word is the pre-op value.
; Lane 0 of a wave32 group seeds eight dwords through the output V# (base 0), runs one atomic on each through a
; global pointer (s[20:21] = 0, vaddr v1 = 0, so the address is the instruction offset), waits, and stores:
; 0x40 xor 0xF0F0F0F0 ^ 0x0F0F0F0F = 0xFFFFFFFF -> out[0]
; 0x44 swap 0x12345678 -> 0xCAFEF00D -> out[1] (the old word is gone)
; 0x48 inc 5 with DATA 10: 5 < 10, so 6 -> out[2]
; 0x4C dec 5 with DATA 10: 0 < 5 < 10, so 4 -> out[3]
; 0x50 add glc: 0x11111111 + 0x22222222; vdst = the old word -> out[4] = 0x11111111
; 0x54 sub glc: 0x100 - 1; vdst = the old word -> out[5] = 0x100
; 0x58 xor glc: 0xF0F0 ^ 0x0FF0; vdst = the old word -> out[6] = 0xF0F0
; 0x5C swap glc: 0xAAAA <- 0x5555; vdst = the old word -> out[7] = 0xAAAA
; inc wraps to 0 when M >= DATA and dec returns DATA when M == 0 or M > DATA (cs_global_atomic32_float.asm keeps
; the fmin/fmax and cmpswap cases); the glc words here are the pre-op values, which the memory result of the same
; op cannot be confused with.
; group: 32,1,1
; Run: VKC_SUBGROUP_SIZE=32 vk_compute_test cs_global_atomic32_rtn.spv 1 dump -> out[0..7] = 4294967295 3405705229 6 4 286331153 256 61680 43690
; mattr: +wavefrontsize32,-wavefrontsize64
v_cmpx_eq_u32_e32 0, v0
v_mov_b32_e32 v11, 0
v_mov_b32_e32 v10, 0xf0f0f0f0
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x40
v_mov_b32_e32 v10, 0x12345678
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x44
v_mov_b32_e32 v10, 5
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x48
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x4c
v_mov_b32_e32 v10, 0x11111111
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x50
v_mov_b32_e32 v10, 0x100
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x54
v_mov_b32_e32 v10, 0xf0f0
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x58
v_mov_b32_e32 v10, 0xaaaa
buffer_store_dword v10, v11, s[0:3], 0 offen offset:0x5c
s_waitcnt vmcnt(0)
s_waitcnt_vscnt null, 0x0
s_mov_b32 s20, 0
s_mov_b32 s21, 0
v_mov_b32 v1, 0
v_mov_b32 v2, 0x0f0f0f0f
global_atomic_xor v1, v2, s[20:21] offset:0x40
v_mov_b32 v2, 0xcafef00d
global_atomic_swap v1, v2, s[20:21] offset:0x44
v_mov_b32 v2, 10
global_atomic_inc v1, v2, s[20:21] offset:0x48
global_atomic_dec v1, v2, s[20:21] offset:0x4c
v_mov_b32 v2, 0x22222222
global_atomic_add v6, v1, v2, s[20:21] offset:0x50 glc
v_mov_b32 v2, 1
global_atomic_sub v7, v1, v2, s[20:21] offset:0x54 glc
v_mov_b32 v2, 0x0ff0
global_atomic_xor v8, v1, v2, s[20:21] offset:0x58 glc
v_mov_b32 v2, 0x5555
global_atomic_swap v9, v1, v2, s[20:21] offset:0x5c glc
s_waitcnt vmcnt(0)
s_waitcnt_vscnt null, 0x0
buffer_load_dword v3, v11, s[0:3], 0 offen offset:0x40
buffer_load_dword v4, v11, s[0:3], 0 offen offset:0x44
buffer_load_dword v5, v11, s[0:3], 0 offen offset:0x48
buffer_load_dword v10, v11, s[0:3], 0 offen offset:0x4c
s_waitcnt vmcnt(0)
buffer_store_dword v3, v11, s[0:3], 0 offen
buffer_store_dword v4, v11, s[0:3], 0 offen offset:4
buffer_store_dword v5, v11, s[0:3], 0 offen offset:8
buffer_store_dword v10, v11, s[0:3], 0 offen offset:12
buffer_store_dword v6, v11, s[0:3], 0 offen offset:16
buffer_store_dword v7, v11, s[0:3], 0 offen offset:20
buffer_store_dword v8, v11, s[0:3], 0 offen offset:24
buffer_store_dword v9, v11, s[0:3], 0 offen offset:28
s_endpgm
Loading
Loading