test(shader): cover VOPC compare constants and ordered F16 #309

Merged
asimplestray merged 1 commit from upstream-pr/309 into main 2026-10-03 06:58:38 +00:00
asimplestray commented 2026-10-02 03:19:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by asimplestray on 2026-10-02T03:19:56Z.


What

Test-only follow-up: the 24 VOPC compare-constant and ordered-F16 opcodes from the original revision have since landed in main via other work, so this PR keeps only the regression test.

Adds the vector_compare_const test (decode opcode + family + ALU classification + VCC/EXEC destination plus translation of all 24 encodings: V_CMP_F/T_I64/U64, V_CMP_F/TRU/O/U_F16 and their V_CMPX_* versions).

Tested

Linux (GCC, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=OFF): full build, ctest 110/110 pass, including the new test.

Checklist

  • Based on current main; no other open PR adds the same test (checked open shader PRs)
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (decoding unknown opcodes still throws)
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4712292010 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/309). Originally posted by [asimplestray](https://github.com/asimplestray) on 2026-10-02T03:19:56Z. --- ### What Test-only follow-up: the 24 VOPC compare-constant and ordered-F16 opcodes from the original revision have since landed in `main` via other work, so this PR keeps only the regression test. Adds the `vector_compare_const` test (decode opcode + family + ALU classification + VCC/EXEC destination plus translation of all 24 encodings: `V_CMP_F/T_I64/U64`, `V_CMP_F/TRU/O/U_F16` and their `V_CMPX_*` versions). ### Tested Linux (GCC, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=OFF`): full build, `ctest` 110/110 pass, including the new test. ### Checklist - [x] Based on current `main`; no other open PR adds the same test (checked open shader PRs) - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (decoding unknown opcodes still throws) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!309
No description provided.