Fix V_PK_MUL_LO_U16 (#4544)

This commit is contained in:
DanielSvoboda 2026-06-09 12:18:46 -03:00 committed by GitHub
parent 0d4fc276b6
commit d7ccf25e6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1702,8 +1702,8 @@ void Translator::V_PK_MUL_LO_U16(const GcnInst& inst) {
const auto src0 = GetSrcPk<IR::U32>(inst.src[0]);
const auto src1 = GetSrcPk<IR::U32>(inst.src[1]);
const auto result_lo = ir.IAdd(src0.first, src1.first);
const auto result_hi = ir.IAdd(src0.second, src1.second);
const auto result_lo = ir.IMul(src0.first, src1.first);
const auto result_hi = ir.IMul(src0.second, src1.second);
SetDstPk<IR::U32, false>(inst.dst[0], {result_lo, result_hi});
}