shader: add S_BITCMP0_B64 and S_BITCMP1_B64 #688
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!688
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/688/head"
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?
@ElijaOwO on GitHub · 2026-09-18 00:31 UTC · original
ElijaOwO:shader-s-bitcmp-b64→main· +132 −1 · 6 files · 4 commits · merged 2026-09-20 15:36 UTCAdds support for the SOPC
S_BITCMP0_B64andS_BITCMP1_B64instructions. Each instruction selects a bit from its 64-bit source using the low six bits of the index and writes the comparison result to SCC.Compute tests cover runtime-loaded register pairs and indices, word boundaries and index wrapping, SCC-driven selections and branches, integer inline constants, and literal operands. Both cases run in the existing compute suite.
Validation:
shader_cfgshader_cfg_testsandshader_recompiler_compute_testsbuilds@coderabbitai[bot] on GitHub · 2026-09-18 00:36 UTC · original · edited 2026-09-20 15:36 UTC
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
a9177ade-6601-4565-b677-c35a5ef8ea4c📥 Commits
Reviewing files that changed from the base of the PR and between
a8cfb1e200and7b2d9a4589.📒 Files selected for processing (1)
tests/ShaderRecompilerComputeTests.cpp💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
📝 Walkthrough
Walkthrough
The shader decoder now defines and maps
S_BITCMP0_B64andS_BITCMP1_B64. Scalar translation dispatches both opcodes to shared 64-bit bit comparison logic. The logic masks the index, selects the relevant 32-bit word, extracts the bit, and updates the comparison result. Tests cover dynamic operands, constants, boundary indices, branching, and suite registration. The dedicated execution mode was removed.Priority: ⬇️ Low
Change: Feature
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 5 files. (1 skipped: 1 too large.)
Comment
@coderabbitai helpto get the list of available commands.