mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 17:34:52 +00:00
shader_recompiler: constant propagation bitwise operations + S_CMPK_EQ_U32 fix (#613)
* rebase on main branch impl of V_LSHL_B64 * remove V_LSHR_B64 * fix S_CMPK_EQ_u32 * fix conflicts * fix broken merge * remove duplicate cases * remove duplicate declaration
This commit is contained in:
parent
990da7edcc
commit
9f4e55a8e7
7 changed files with 29 additions and 4 deletions
|
@ -472,7 +472,7 @@ void Translator::S_MIN_U32(const GcnInst& inst) {
|
|||
|
||||
void Translator::S_CMPK_EQ_U32(const GcnInst& inst) {
|
||||
const s32 simm16 = inst.control.sopk.simm;
|
||||
const IR::U32 src0{GetSrc(inst.src[0])};
|
||||
const IR::U32 src0{GetSrc(inst.dst[0])};
|
||||
const IR::U32 src1{ir.Imm32(simm16)};
|
||||
ir.SetScc(ir.IEqual(src0, src1));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue