From 245aeecbc0954cb7cafb80e154e9e0dd47da0f6d Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 5 Dec 2013 22:53:48 +0100 Subject: [PATCH] ARM: Check for VFPv4 before using CVT.F32.F16 (vh2f). Issue #4730 might be fixed by this. --- Core/MIPS/ARM/ArmCompVFPU.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Core/MIPS/ARM/ArmCompVFPU.cpp b/Core/MIPS/ARM/ArmCompVFPU.cpp index d2b9f08b33..40c285c941 100644 --- a/Core/MIPS/ARM/ArmCompVFPU.cpp +++ b/Core/MIPS/ARM/ArmCompVFPU.cpp @@ -974,7 +974,13 @@ namespace MIPSComp DISABLE; } - if (!cpu_info.bNEON || !cpu_info.bHalf) { + if (!cpu_info.bNEON) { + DISABLE; + } + + // This multi-VCVT.F32.F16 is only available in the VFPv4 extension. + // The VFPv3 one is VCVTB, VCVTT which we don't yet have support for. + if (!(cpu_info.bHalf && cpu_info.bVFPv4)) { // No hardware support for half-to-float, fallback to interpreter // TODO: Translate the fast SSE solution to standard integer/VFP stuff // for the weaker CPUs.