mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-21 12:04:45 +00:00
S_CMPK_EQ_U32
This commit is contained in:
parent
af975cd646
commit
2240bdf543
1 changed files with 3 additions and 1 deletions
|
@ -466,9 +466,11 @@ 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 src1{GetSrc(inst.src[1])};
|
||||
ir.SetScc(ir.IEqual(src0, src1));
|
||||
const IR::U32 adjusted_src1 = ir.Imm32(simm16);
|
||||
ir.SetScc(ir.IEqual(src0, adjusted_src1));
|
||||
}
|
||||
|
||||
} // namespace Shader::Gcn
|
||||
|
|
Loading…
Add table
Reference in a new issue