floating_point_conversion_integer: Use FPS64ToDouble and FPU64ToDouble in SCVTF_float_int and UCVTF_float_int

The opcodes introduced in 979b6f39f1621b80bd463645ec5b08661cb6b1bf can
also be used here, avoiding more falling back to the interpreter.
This commit is contained in:
Lioncash 2018-07-09 19:15:54 -04:00 committed by MerryMage
parent b97358075e
commit 3714bc0ed4

View file

@ -39,7 +39,7 @@ bool TranslatorVisitor::SCVTF_float_int(bool sf, Imm<2> type, Reg Rn, Vec Vd) {
} else if (intsize == 64 && *fltsize == 32) {
return InterpretThisInstruction();
} else if (intsize == 64 && *fltsize == 64) {
return InterpretThisInstruction();
fltval = ir.FPS64ToDouble(intval, false, true);
} else {
UNREACHABLE();
}
@ -66,7 +66,7 @@ bool TranslatorVisitor::UCVTF_float_int(bool sf, Imm<2> type, Reg Rn, Vec Vd) {
} else if (intsize == 64 && *fltsize == 32) {
return InterpretThisInstruction();
} else if (intsize == 64 && *fltsize == 64) {
return InterpretThisInstruction();
fltval = ir.FPU64ToDouble(intval, false, true);
} else {
UNREACHABLE();
}