S_CMPK_EQ_U32

This commit is contained in:
DanielSvoboda 2024-08-16 14:46:14 -03:00 committed by GitHub
parent af975cd646
commit 2240bdf543
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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