upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/run_gpu_tests.py
diff options
context:
space:
mode:
authorKoLolX3 <94136289+KoLolX3@users.noreply.github.com>2026-11-23 14:09:15 -0800
committerKoLolX3 <94136289+KoLolX3@users.noreply.github.com>2026-11-23 14:09:15 -0800
commitd578b4806ef1c04eec77d811dce2c60103c32db6 (patch)
treecd6ba6699500f6dbb2f5fd7679394a940411c7f5 /scripts/run_gpu_tests.py
parent5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff)
Tests: GPU coverage for ds_wrxchg*_rtn_b64, ds_or_rtn_b64, ds_min_f32 and ds_max_rtn_f32
docs/design.md marks the 64-bit LDS exchanges not GPU-verified, and cs_lds_atomics_ext.asm (#9494) leaves ds_or_b64 and the f32 min/max forms out. cs_lds_xchg64_ext.asm runs one lane through ds_wrxchg_rtn_b64 (both dwords left and the returned pair), ds_wrxchg2_rtn_b64 at offsets 0/2 (four old and four new dwords), ds_wrxchg2st64_rtn_b64 at offsets 1/2 (512-byte steps), ds_or_rtn_b64, ds_min_f32 with a quiet NaN in memory and ds_max_rtn_f32 ordering -0.0 below +0.0. The eight expected words are derived in its header from the rows. Registered in check.py and run_gpu_tests.py next to cs_lds_b64_cmpst; the wrxchg row notes the GPU check (the min/max and bitwise b64 rows get theirs in #9494, to keep the two PRs apart).
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 3e4b17ffa..00ed1fcf9 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -1157,7 +1157,7 @@ def run_suite(a, work: str) -> int:
1157 "cs_w64x_lds_war", "cs_w64x_partial", "cs_w64x_sbarrier", "cs_w64x_load_ballot_load", 1157 "cs_w64x_lds_war", "cs_w64x_partial", "cs_w64x_sbarrier", "cs_w64x_load_ballot_load",
1158 "cs_w64x_mask_reuse", "cs_w64x_mask_reuse2", "cs_w64x_chain_barrier", "cs_barrier_divergent", 1158 "cs_w64x_mask_reuse", "cs_w64x_mask_reuse2", "cs_w64x_chain_barrier", "cs_barrier_divergent",
1159 "cs_bpermute32", "cs_w64x_partial_scmp", "cs_w32_partial_scmp", "cs_barrier_early_end", 1159 "cs_bpermute32", "cs_w64x_partial_scmp", "cs_w32_partial_scmp", "cs_barrier_early_end",
1160 "cs_barrier_loop", "cs_w64x_andn2_exec", "cs_w64x_saveexec_b64", "cs_lds_b64_cmpst", "cs_w32_andn2_exec", 1160 "cs_barrier_loop", "cs_w64x_andn2_exec", "cs_w64x_saveexec_b64", "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_w32_andn2_exec",
1161 "cs_mask_vgpr_exec"): 1161 "cs_mask_vgpr_exec"):
1162 cs_dump_wants = { 1162 cs_dump_wants = {
1163 "cs_store": [0x400080FF, 0xE00003FF, 0x3C004000, 0xEEEEEEEE, 0x40003C00, 0xBC003800, 0x40FF8000, 0x3FF00000], 1163 "cs_store": [0x400080FF, 0xE00003FF, 0x3C004000, 0xEEEEEEEE, 0x40003C00, 0xBC003800, 0x40FF8000, 0x3FF00000],
@@ -1192,6 +1192,9 @@ def run_suite(a, work: str) -> int:
1192 # ds_cmpst_b32 and the b64 2-address forms (cs_lds_b64_cmpst.asm header) 1192 # ds_cmpst_b32 and the b64 2-address forms (cs_lds_b64_cmpst.asm header)
1193 "cs_lds_b64_cmpst": [0x11110001, 0x22220002, 0x33330003, 0x44440004, 1193 "cs_lds_b64_cmpst": [0x11110001, 0x22220002, 0x33330003, 0x44440004,
1194 0xCCCC000C, 0x44440004, 0xBBBB000B, 0x3579BADC], 1194 0xCCCC000C, 0x44440004, 0xBBBB000B, 0x3579BADC],
1195 # ds_wrxchg*_rtn_b64, ds_or_rtn_b64, ds_min_f32, ds_max_rtn_f32 (cs_lds_xchg64_ext.asm header)
1196 "cs_lds_xchg64_ext": [0x11110003, 0x33333333, 0xF00FF000, 0x04030201,
1197 0x40302010, 0x70500705, 0x3FC00000, 0x80000000],
1195 # constant EXEC masks (cs_exec_const.asm): each lane takes its own bit of the constant 1198 # constant EXEC masks (cs_exec_const.asm): each lane takes its own bit of the constant
1196 "cs_exec_const": [16, 8, 2, 16, 0, 16], 1199 "cs_exec_const": [16, 8, 2, 16, 0, 16],
1197 # constant lane masks: lane L takes bit L (cs_w32_mask_imm.asm / cs_w64_mask_imm.asm headers) 1200 # constant lane masks: lane L takes bit L (cs_w32_mask_imm.asm / cs_w64_mask_imm.asm headers)
@@ -1271,7 +1274,7 @@ def run_suite(a, work: str) -> int:
1271 "cs_w32_lds_u8_d16", "cs_w32_int_ext", "cs_w32_salu64", "cs_w32_misc_ext", "cs_w32_new_ops", 1274 "cs_w32_lds_u8_d16", "cs_w32_int_ext", "cs_w32_salu64", "cs_w32_misc_ext", "cs_w32_new_ops",
1272 "cs_w32_lds_subdword", "cs_w32_lds_wide", 1275 "cs_w32_lds_subdword", "cs_w32_lds_wide",
1273 "cs_bpermute32", "cs_w32_partial_scmp", "cs_w32_permlane_fi", "cs_w32_sincos", "cs_w32_buffer_sub16", "cs_w32_buffer_store_sub", "cs_w32_fcmpswap", 1276 "cs_bpermute32", "cs_w32_partial_scmp", "cs_w32_permlane_fi", "cs_w32_sincos", "cs_w32_buffer_sub16", "cs_w32_buffer_store_sub", "cs_w32_fcmpswap",
1274 "cs_lds_b64_cmpst", "cs_exec_const", "cs_w32_mask_imm", "cs_mask_vgpr_exec", 1277 "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_exec_const", "cs_w32_mask_imm", "cs_mask_vgpr_exec",
1275 "cs_dpp", "cs_dpp_row", "cs_dpp_mask", "cs_dpp8", 1278 "cs_dpp", "cs_dpp_row", "cs_dpp_mask", "cs_dpp8",
1276 "cs_dpp_ops", "cs_dpp_bound", "cs_dpp_bank", "cs_dpp_fi", "cs_w32_andn2_exec") and not emulated and not partial 1279 "cs_dpp_ops", "cs_dpp_bound", "cs_dpp_bank", "cs_dpp_fi", "cs_w32_andn2_exec") and not emulated and not partial
1277 if partial and not emulated: 1280 if partial and not emulated:
@@ -1297,7 +1300,7 @@ def run_suite(a, work: str) -> int:
1297 ok, detail = judge_cs_dump(rc, msg, want, wave64=wave64, partial=partial, emulated=emulated, 1300 ok, detail = judge_cs_dump(rc, msg, want, wave64=wave64, partial=partial, emulated=emulated,
1298 hexwords=name in ("cs_store", "cs_smem_soffset_imm", "cs_w32_lds_u8_d16", 1301 hexwords=name in ("cs_store", "cs_smem_soffset_imm", "cs_w32_lds_u8_d16",
1299 "cs_w32_lds_subdword", "cs_w32_lds_wide", 1302 "cs_w32_lds_subdword", "cs_w32_lds_wide",
1300 "cs_lds_b64_cmpst", "cs_signed_zero_nan")) 1303 "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_signed_zero_nan"))
1301 if ok and None in want: 1304 if ok and None in want:
1302 unjudged = ", ".join(str(i) for i, w in enumerate(want) if w is None) 1305 unjudged = ", ".join(str(i) for i, w in enumerate(want) if w is None)
1303 detail += f" (words {unjudged} not judged on this device: UNJUDGED_WORDS in check.py)" 1306 detail += f" (words {unjudged} not judged on this device: UNJUDGED_WORDS in check.py)"