From 9c0d5cf15c39c4c34d3bcab371992f1d25c229e6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 9 Jul 2018 19:50:09 -0400 Subject: [PATCH] floating_point_conversion_integer: Handle S64/U64 -> F32 conversions in SCVTF_float_int and UCVTF_float_int --- .../A64/translate/impl/floating_point_conversion_integer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/A64/translate/impl/floating_point_conversion_integer.cpp b/src/frontend/A64/translate/impl/floating_point_conversion_integer.cpp index 09bae86e..fd634dcc 100644 --- a/src/frontend/A64/translate/impl/floating_point_conversion_integer.cpp +++ b/src/frontend/A64/translate/impl/floating_point_conversion_integer.cpp @@ -37,7 +37,7 @@ bool TranslatorVisitor::SCVTF_float_int(bool sf, Imm<2> type, Reg Rn, Vec Vd) { } else if (intsize == 32 && *fltsize == 64) { fltval = ir.FPS32ToDouble(intval, false, true); } else if (intsize == 64 && *fltsize == 32) { - return InterpretThisInstruction(); + fltval = ir.FPS64ToSingle(intval, false, true); } else if (intsize == 64 && *fltsize == 64) { fltval = ir.FPS64ToDouble(intval, false, true); } else { @@ -64,7 +64,7 @@ bool TranslatorVisitor::UCVTF_float_int(bool sf, Imm<2> type, Reg Rn, Vec Vd) { } else if (intsize == 32 && *fltsize == 64) { fltval = ir.FPU32ToDouble(intval, false, true); } else if (intsize == 64 && *fltsize == 32) { - return InterpretThisInstruction(); + fltval = ir.FPU64ToSingle(intval, false, true); } else if (intsize == 64 && *fltsize == 64) { fltval = ir.FPU64ToDouble(intval, false, true); } else {