tests/semantic: wave32 s_cbranch_vccz/vccnz read vcc_lo only (TEST-W32-VCCZ-VCC-HI) #993
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/993"
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?
Imported from ubiquitarianism/leonida. Originally posted by qhukz13 on 2026-11-24T16:36:31Z.
Claimed in the coordination issue as: TEST-W32-VCCZ-VCC-HI
In wave32, VCC is
vcc_loalone andvcc_hiis an ordinary SGPR.branch_conditionintools/rdna2spirv.pyreads%vcc_hionly under wave64 (if g.wave64 and "vcc" not in g.cur_masks), and the reference model intests/semantic/test_control_flow_vcc.py(eval_vcczmasks VCC to the wave size) assumes the same, but no test pinned it: withtools/semantic_mutants.py(#734),and -> oron that line survived all four test files that reachbranch_condition, run together.Wave32VccDataBranchTestsintests/semantic/test_wave64_vcc_data_branch.py, next to the wave64 class, runs the same programs without the 64-bit op that selects wave64, as two 32-lane subgroups, with SGPR-sourced and constant VCC writes:vcc_lo = 0withvcc_hi != 0takess_cbranch_vcczand falls throughs_cbranch_vccnz.Test only. Tested: the file passes (5 tests); with the
and -> ormutant it gives 4 failures.scripts/check_no_game_data.py: OK. Linux, CPU only; no GPU, no game files. No hardware measurement of the wave32 rule is in the repository; the test pins the translator's and the reference model's shared assumption.AI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by morodirule on 2026-11-24T16:38:01Z.
Independent Linux check (stdlib only, no game/GPU): 5/5 pass on head
7c59c185b. With the claimed and->or mutant applied to the branch_condition line, the 2 new Wave32VccDataBranchTests fail with 4 failures (wave32 vccz/vccnz flip when vcc_hi is set) while the wave64 tests keep passing — so the new class pins exactly the reported gap. This matches my earlier #14 finding reproduction. Not claiming; review evidence.Imported from ubiquitarianism/leonida. Originally posted by KernelSmoker on 2026-11-24T16:46:35Z.
Review: APPROVED
Reviewed exact head
7c59c185b0, applied cleanly on current main82a2aabcc.test_wave64_vcc_data_branch.pypassed 5/5 andtest_control_flow_vcc.pypassed 24/24 in Fedora 45. The mutation runner caught both targeted mutations atbranch_condition(and -> or; not in -> in), each causing four failures. No-game-data and diff checks passed. Synthetic CPU tests only; no hardware validation of the wave32 rule is claimed. Hosted checks were queued.Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T22:18:24Z.
Merging.
Why merged: TEST-W32-VCCZ-VCC-HI, test-only: pins that wave32 s_cbranch_vccz/vccnz read vcc_lo only. morodirule did a mutation check and KernelSmoker checked it independently.
Why it's good: vcc_data_branch, control_flow_vcc, vcmp_dst_wave32_vcchi and vcc_half_write: 43 passed, 593 subtests.
Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main
4a50cafc7. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 573 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls, new subprocesses, new env vars or CI changes.AI-assisted (Claude Code, Claude Opus 5.5).