tests: cover S_FF1_I32_B32 and V_CMPX_U_F32 #1155
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!1155
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1155/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?
@Nawid3333 on GitHub · 2026-10-07 17:53 UTC · original
Nawid3333:tests/remaining-opcode-coverage→main· +67 −0 · 1 files · 2 commits · closed without mergingWhat
These two opcodes decode and translate, but no test names them (
V_CMPX_U_F32was added in #1120). This adds a GPU case for each toshader_recompiler_compute_tests, one commit per opcode. Test-only: no source change.ScalarFf1I32B32checks the index of the lowest set bit for0,1,0x80000000,0x00f00000and0xffffffff. The result is-1when no bit is set, as the existingS_FF1_I32_B64check inScalarBitfieldPackexpects. The case also checks that SCC is left unchanged when it is 1 and when it is 0. It runs in the default list and with--sff1-b32-only.VectorCmpxUF32CapturedExecMask: a NaN on either side keeps the lane in EXEC. Ordered operands (1.0vs2.0,1.0vs1.0) clear it, so the following store leaves the initial value. It runs in the default list and with--fp32-compare-only.Cross-check for
S_FF1_I32_B32in LLVM's AMDGPU backend (SOPInstructions.td):AMDGPUffbl_b32;} // End Defs = [SCC]line, so it isn't marked as writing SCC;s_ctz_i32_b32(SOP1_Real_gfx11_gfx12<0x008, "s_ctz_i32_b32">).Testing
Windows 11, clang-cl 19.1.5, Release, AMD RX 9070 XT, this branch on
maind2413fc2:--sff1-b32-onlyand--fp32-compare-only: pass.S_FF1_I32_B32withFindUMsb32instead ofFindILsb32;V_CMPX_U_F32as an ordered compare.mainc86c8b4d: both modes still pass there, and both changes above still make them fail.AI use (per the README's AI policy): Claude (Anthropic) found the untested opcodes, wrote the cases, derived the expected values and ran the checks above on my machine. I reviewed the cases and the results before opening this PR.
🤖 Generated with Claude Code
@coderabbitai[bot] on GitHub · 2026-10-07 18:11 UTC · original · edited 2026-10-07 22:15 UTC
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
1677c7af-6a1b-4213-91de-b0752a822d02📥 Commits
Reviewing files that changed from the base of the PR and between e6d80110ab442e562a1e38704f3c82dffe0aa78b and
2b9c9a261e.📒 Files selected for processing (1)
tests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
📝 Walkthrough
Walkthrough
The compute tests add
ScalarFf1I32B32forS_FF1_I32_B32andVectorCmpxUF32CapturedExecMaskfor unordered F32 compare-and-execute masking. Both tests are registered in the standard case list. The scalar test has a dedicated selector, and the vector test is added to the FP32 compare selector.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Other
Merge Risk: ⚪ Minimal · up to
2b9c9This test-only change adds focused coverage for FF1 and unordered compare behavior. No material merge-blocking risk remains beyond normal checks.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.Pull request closed