A64: Handle S32->F32 case for SCVTF (vector)

This commit is contained in:
Lioncash
2018-04-19 15:24:08 -04:00
committed by MerryMage
parent 38fa984b53
commit d1f5b084b4
2 changed files with 20 additions and 1 deletions

View File

@@ -243,4 +243,23 @@ bool TranslatorVisitor::REV64_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd) {
return true;
}
bool TranslatorVisitor::SCVTF_int_4(bool Q, bool sz, Vec Vn, Vec Vd) {
if (sz && !Q) {
return ReservedValue();
}
if (sz) {
// TODO: Implement
return InterpretThisInstruction();
}
const size_t datasize = Q ? 128 : 64;
const IR::U128 operand = V(datasize, Vn);
const IR::U128 result = ir.FPVectorS32ToSingle(operand);
V(datasize, Vd, result);
return true;
}
} // namespace Dynarmic::A64