Repository navigation
Conversation
|
I ran cs_w32_vcmp64_null at 1f82097 on Linux with an RTX 3060 (NVIDIA 615.78.08). It passed with all eight expected words. One coverage gap: the fixture ORs the expected-true null <= null mask with the expected-false null != null mask. I changed ne to eq in a scratch copy and still got all eight expected words. Could you check the two masks separately so the fixture catches that regression? I’d also narrow the GPU verification note in docs/design.md to the cases this fixture exercises. It’s a wave32 shader, and building with LEONIDA_W64_EMULATE=1 produced byte-identical SPIR-V here, so I’d drop the wave64-emulation claim for this fixture. |
|
Tested
Binaries from |
|
Tested on Linux, merged onto GPU: NVIDIA GeForce RTX 2070 SUPER (Turing, subgroup 32), proprietary driver 620.70.06, Fedora 44, llvm-mc 22.1.8, SPIRV-Tools 2026.1.
New fixture The only failures in both runs are the known AI-assisted: yes (Claude Code ran the build and tests on my machine; numbers are the runners' own output). |
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)