Incorrect PROT3W translation in ps2xRecomp

未关闭 适合新手
#435 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
77/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
cpp
领域
compilers

调研方向

阅读 ps2xRecomp/src/lib/mmi_translation_helpers.cpp 并找到 CodeGenerator::translatePROT3W()。检查生成的 shuffle 是否符合所述的 PROT3W 行为:旋转低位的三个 32 位字,并保留高位字。生成的 shuffle 符合该行为,且报告的寄存器别名和 lane 保留情况仍有覆盖时,即为完成。

由索引模型根据 Issue 内容生成。

描述

The CodeGenerator::translatePROT3W() implementation in ps2xRecomp/src/lib/mmi_translation_helpers.cpp emits _MM_SHUFFLE(0,3,2,1), which rotates all four 32-bit words.

The PS2 PROT3W instruction rotates the lower three words while preserving the upper word.

We encountered this while developing an All Star Pro Wrestling III native Windows recompilation. The corrected exporter passed 2,000 emitted-code comparisons, including register aliasing and lane-preservation cases.

This is a generated-code correctness issue. Its impact on our game's rendering has not yet been established.

主要语言
C++
星标
3.3k
派生
149
平均合并
8 小时 46 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ran-j/PS2Recomp 的其他 Issue

查看 ran-j/PS2Recomp 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。