[PR #1766] [MERGED] shader_recompiler: Implement FREXP instructions. #2287

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1766
Author: @squidbus
Created: 12/13/2024
Status: Merged
Merged: 12/13/2024
Merged by: @raphaelthegreat

Base: mainHead: frexp


📝 Commits (1)

  • 4070988 shader_recompiler: Implement FREXP instructions.

📊 Changes

10 files changed (+119 additions, -8 deletions)

View changed files

📝 externals/sirit (+1 -1)
📝 src/shader_recompiler/backend/spirv/emit_spirv_floating_point.cpp (+25 -1)
📝 src/shader_recompiler/backend/spirv/emit_spirv_instructions.h (+6 -1)
📝 src/shader_recompiler/backend/spirv/spirv_emit_context.cpp (+4 -0)
📝 src/shader_recompiler/backend/spirv/spirv_emit_context.h (+2 -0)
📝 src/shader_recompiler/frontend/translate/translate.h (+5 -0)
📝 src/shader_recompiler/frontend/translate/vector_alu.cpp (+36 -1)
📝 src/shader_recompiler/ir/ir_emitter.cpp (+31 -2)
📝 src/shader_recompiler/ir/ir_emitter.h (+3 -1)
📝 src/shader_recompiler/ir/opcodes.inc (+6 -1)

📄 Description

Implements:

  • V_FREXP_EXP_I32_F64
  • V_FREXP_MANT_F64
  • V_FRACT_F64
  • V_FREXP_EXP_I32_F32
  • V_FREXP_MANT_F32

Some of these used by CUSA05797, CUSA19640.


🔄 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/1766 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 12/13/2024 **Status:** ✅ Merged **Merged:** 12/13/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `frexp` --- ### 📝 Commits (1) - [`4070988`](https://github.com/shadps4-emu/shadPS4/commit/4070988cdfc1dd76991fe9b06f33c353e9a30547) shader_recompiler: Implement FREXP instructions. ### 📊 Changes **10 files changed** (+119 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `externals/sirit` (+1 -1) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_floating_point.cpp` (+25 -1) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_instructions.h` (+6 -1) 📝 `src/shader_recompiler/backend/spirv/spirv_emit_context.cpp` (+4 -0) 📝 `src/shader_recompiler/backend/spirv/spirv_emit_context.h` (+2 -0) 📝 `src/shader_recompiler/frontend/translate/translate.h` (+5 -0) 📝 `src/shader_recompiler/frontend/translate/vector_alu.cpp` (+36 -1) 📝 `src/shader_recompiler/ir/ir_emitter.cpp` (+31 -2) 📝 `src/shader_recompiler/ir/ir_emitter.h` (+3 -1) 📝 `src/shader_recompiler/ir/opcodes.inc` (+6 -1) </details> ### 📄 Description Implements: * V_FREXP_EXP_I32_F64 * V_FREXP_MANT_F64 * V_FRACT_F64 * V_FREXP_EXP_I32_F32 * V_FREXP_MANT_F32 Some of these used by CUSA05797, CUSA19640. --- <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:55 +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#2287
No description provided.