ARM: Check for VFPv4 before using CVT.F32.F16 (vh2f).

Issue #4730 might be fixed by this.
This commit is contained in:
Henrik Rydgard committed 2013-12-05 22:55:31 +01:00
1 parent 7e86907923
commit 245aeecbc0
1 file changed
+7 -1
+7 -1
View File
@@ -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.