[PR #1550] [MERGED] shader_recompiler/frontend: Implement bitcmp instructions #2162

Closed
opened 2026-02-27 21:15:26 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1550
Author: @polybiusproxy
Created: 11/19/2024
Status: Merged
Merged: 11/19/2024
Merged by: @polybiusproxy

Base: mainHead: echochrome-best-game-ever


📝 Commits (1)

  • b61cb25 shader_recompiler/frontend: Implement bitcmp instructions

📊 Changes

4 files changed (+52 additions, -0 deletions)

View changed files

📝 src/shader_recompiler/frontend/translate/scalar_alu.cpp (+39 -0)
📝 src/shader_recompiler/frontend/translate/translate.cpp (+7 -0)
📝 src/shader_recompiler/frontend/translate/translate.h (+1 -0)
📝 src/shader_recompiler/ir/ir_emitter.cpp (+5 -0)

📄 Description

Seen on PSPHD. Also implements getting the scc register with GetSrc - required for these instructions:

s_or_b32        vcc_lo, vcc_hi, scc
/*snip*/
s_or_b32        s0, vcc_hi, scc
/*snip/*
s_or_b32        s1, scc, vcc_hi

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/1550 **Author:** [@polybiusproxy](https://github.com/polybiusproxy) **Created:** 11/19/2024 **Status:** ✅ Merged **Merged:** 11/19/2024 **Merged by:** [@polybiusproxy](https://github.com/polybiusproxy) **Base:** `main` ← **Head:** `echochrome-best-game-ever` --- ### 📝 Commits (1) - [`b61cb25`](https://github.com/shadps4-emu/shadPS4/commit/b61cb2500504233f662e6b488f906a26a1dc137c) shader_recompiler/frontend: Implement `bitcmp` instructions ### 📊 Changes **4 files changed** (+52 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/shader_recompiler/frontend/translate/scalar_alu.cpp` (+39 -0) 📝 `src/shader_recompiler/frontend/translate/translate.cpp` (+7 -0) 📝 `src/shader_recompiler/frontend/translate/translate.h` (+1 -0) 📝 `src/shader_recompiler/ir/ir_emitter.cpp` (+5 -0) </details> ### 📄 Description Seen on PSPHD. Also implements getting the `scc` register with `GetSrc` - required for these instructions: ``` s_or_b32 vcc_lo, vcc_hi, scc /*snip*/ s_or_b32 s0, vcc_hi, scc /*snip/* s_or_b32 s1, scc, vcc_hi ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:15:26 +03:00
Sign in to join this conversation.
No milestone
No project
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.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2162
No description provided.