[PR #2405] [MERGED] Fix S_LSHR_B32 #2707

Closed
opened 2026-02-27 22:00:56 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2405
Author: @DanielSvoboda
Created: 2/12/2025
Status: Merged
Merged: 2/12/2025
Merged by: @squidbus

Base: mainHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 src/shader_recompiler/frontend/translate/scalar_alu.cpp (+2 -1)

📄 Description

The shift value should be extracted from the 5 least significant bits of the second operand (S1.u[4:0]), to ensure that the shift is limited to values ​​from 0 to 31, suitable for 32-bit operations

Instruction S_LSHR_B32
Description D.u = S0.u >> S1.u[4:0]. SCC = 1 if result is non-zero.


🔄 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/2405 **Author:** [@DanielSvoboda](https://github.com/DanielSvoboda) **Created:** 2/12/2025 **Status:** ✅ Merged **Merged:** 2/12/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`d3582a9`](https://github.com/shadps4-emu/shadPS4/commit/d3582a9ecf2e65ad415287893a4df8c2c27e42ff) Fix S_LSHR_B32 ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/shader_recompiler/frontend/translate/scalar_alu.cpp` (+2 -1) </details> ### 📄 Description The shift value should be extracted from the 5 least significant bits of the second operand (S1.u[4:0]), to ensure that the shift is limited to values ​​from 0 to 31, suitable for 32-bit operations Instruction S_LSHR_B32 Description D.u = S0.u >> S1.u[4:0]. SCC = 1 if result is non-zero. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:00:56 +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#2707
No description provided.