decoder: add V_CMPX_U_F32 #1120
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!1120
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1120/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?
@NeySlim on GitHub · 2026-10-06 19:45 UTC · original
NeySlim:feat/v-cmpx-u-f32→main· +5 −1 · 3 files · 1 commits · merged 2026-10-06 21:16 UTCVOPC opcode 0x18 (
V_CMPX_U_F32, unordered compare writing EXEC) was missing from the decoder while its ordered twinV_CMPX_O_F32(0x17) is implemented; the CFG build failed withVOPC opcode is not implemented.This adds the opcode to the enum, the VOPC table, the compare classification lists and the translator, reusing
EmitFloatOrderedCompare(inst, false, true).Seen in God of War Ragnarök (PPSA08332) as
v_cmpx_u_f32 v3, v3(a NaN test). Tested on Linux, RTX 4090.@coderabbitai[bot] on GitHub · 2026-10-06 19:49 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
e0fae0e5-5f8b-4701-8c29-4567bbe4575e📥 Commits
Reviewing files that changed from the base of the PR and between
199d0a9d92and9d3e28895d.📒 Files selected for processing (3)
src/graphics/shader/recompiler/frontend/decode/ShaderDecoder.hsrc/graphics/shader/recompiler/frontend/decode/VectorAluOps.cppsrc/graphics/shader/recompiler/frontend/translate/Vector.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 2 remain after this review.
📝 Walkthrough
Walkthrough
The decoder now maps VOPC encoding
0x18toV_CMPX_U_F32and recognizes it as a floating-point compare and compare-exec operation. Vector translation dispatches the opcode toEmitFloatOrderedComparewith unordered mode and the X variant flag set.Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
9d3e2V_CMPX_U_F32 now follows the expected unordered comparison and EXEC-update path. No merge-blocking issue was identified.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 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.@Nmzik on GitHub · 2026-10-06 21:16 UTC · original
@NeySlim Thanks