mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:40:52 +01:00
[PR #302] [CLOSED] tests: GPU fixture cs_w32_vcmp64_null for 64-bit integer v_cmp/v_cmpx null sources #354
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#354
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/302
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/10034📝 Commits (1)
1f82097tests: GPU fixture cs_w32_vcmp64_null for 64-bit integer v_cmp/v_cmpx null sources📊 Changes
4 files changed (+123 additions, -5 deletions)
View changed files
📝
docs/design.md(+1 -1)📝
runtime/test/shaders/check.py(+5 -2)➕
runtime/test/shaders/cs_w32_vcmp64_null.asm(+112 -0)📝
scripts/run_gpu_tests.py(+5 -2)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Summary
Adds a wave32 compute GPU fixture
runtime/test/shaders/cs_w32_vcmp64_null.asmverifying thedocs/design.mdcontract row "Null sources in 64-bit integer VALU compares" (v_cmp/v_cmpxrelationseq,ne,lt,le,gt,geonu64/i64,e32/e64,nullinsrc0,src1, or both, partialEXECmasking,v_cmpxnarrowingEXECwhile leavingVCCuntouched) on an NVIDIA GeForce RTX 3070, wires it intoruntime/test/shaders/check.pyandscripts/run_gpu_tests.py, and updates the correspondingdocs/design.mdcontract row (keepingno corpus count).Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116958170
What
cs_w32_vcmp64_null.asmchecksWave32 group (
32,1,1) assigns each laneia 64-bit value byi & 3:0,+1,2^32, and2^63(-2^63signed). Each lane ORs1 << laneinto LDS for each active mask bit and lane 0 stores eight 32-bit words:out[0](0x11111111):v_cmp_eq_u64_e32 vcc_lo, null, v[2:3]out[1](0x77777777):v_cmp_ge_i64_e64 s8, v[2:3], nullout[2](0x66666666):v_cmp_lt_i64_e32 vcc_lo, null, v[2:3]out[3](0x88888888):v_cmp_gt_i64_e64 s10, null, v[2:3]out[4](0x00EE00EE):v_cmp_gt_u64_e64 s11, v[2:3], nullunderEXEC = 0x00FF00FFout[5](0x5555AAAA):v_cmp_le_u64_e64 null, null | v_cmp_ne_i64_e64 null, nullunderEXEC = 0x5555AAAAout[6](0x08888888):EXECafterv_cmpx_lt_i64_e64 v[2:3], nullunderEXEC = 0x0FFFFFFFout[7](0x96A53C69):VCCpreserved untouched afterv_cmpx_lt_i64_e64Hardware & Environment
621.24, Vulkan1.4.357llvm-mc23.1.6,spirv-as/spirv-val2026.4,vk_compute_test.exebuilt with MSVC 19.51Testing
python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_w32_vcmp64_null --require-pass→1/1 passed(PASS cs_w32_vcmp64_null 286331153 2004318071 1717986918 2290649224 15597806 1431677610 143165576 2527411305)LEONIDA_W64_EMULATE=1 python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_w32_vcmp64_null --require-pass→1/1 passed(identical output)python -I runtime/test/shaders/build.py <scratch> cs_w32_vcmp64_null+check.py→cs_w32_vcmp64_null okpython -m unittest discover -s tests/semantic -p test_vcmp64_null_src.py→ 6/6 OKpython -I tests/test_run_gpu_tests.py(62/62 OK),tests/test_gpu_build_dir.py(18/18 OK),tests/test_design_contract_rows.py(5/5 OK),tests/test_docs_encoding.py(1/1 OK),tests/test_docs_table_rows.py(2/2 OK)python -m compileall -q runtime/test/shaders/check.py scripts/run_gpu_tests.py→ cleanpython -I scripts/check_no_game_data.py runtime/test/shaders/cs_w32_vcmp64_null.asm runtime/test/shaders/check.py scripts/run_gpu_tests.py docs/design.md→ clean, LF-only verifiedChecklist
#9677)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.