test(shader): cover VOPC class and remaining compares #310
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/310"
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 boykopovar/AnyPS5. Originally posted by asimplestray on 2026-10-02T03:34:04Z.
What
Test-only follow-up: the
V_CMPX_CLASS_F16implementation has since landed inmainvia other work (asemitFloat16ClassCompare), so this PR keeps only the regression test.Adds the
vector_compare_int64_f16test (decode opcode + family + ALU classification plus translation of 26 VOPC int64/F16 encodings).Tested
Linux (GCC,
BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=OFF): full build, new test passes. Note:agc_driver_pixel_helper_lanesfails on currentmainindependent of this PR (Vulkan pixel-helper assertion, no shader implementation touched here).Checklist
main; no other open PR adds the same test (checked open shader PRs).mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T05:34:26Z.
Thanks for this. Since #539 landed,
core/libs/prx/libSceAgcDriver/tests/execution/VopcCompare.cppandVopcCompareTable.cpprun every non-f64 VOPC compare on the GPU in both its_e32and_e64forms and check the results. That includesv_cmpx_class_f16andv_cmpx_nlt_f16, the two this PR covered that weren't executed before. The decode-only checks here don't add coverage on top of that, so I think this can be closed. If you find a compare form the execution test misses, adding it there would be welcome.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T21:20:22Z.
As I mentioned on 10-06, main's execution tests (
VopcCompare.cppandVopcCompareTable.cpp, from #539) already run these compares on the GPU in both encodings, includingv_cmpx_class_f16andv_cmpx_nlt_f16. So I'm closing this as superseded. Thanks for the work.If you find a compare form those tests miss, a PR adding it there is welcome. If you think I've missed something here, please reopen.
Pull request closed