From 53fa04f326b4a5e38aec3d18d53801484e9164c4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 9 Feb 2015 17:17:52 -0500 Subject: vfpdouble: Fix the FTOUI NaN sign setting This was fixed for vfpsingle, but not vfpdouble --- src/core/arm/skyeye_common/vfp/vfpdouble.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/arm/skyeye_common/vfp/vfpdouble.cpp b/src/core/arm/skyeye_common/vfp/vfpdouble.cpp index d6d21db2f..2c15db12b 100644 --- a/src/core/arm/skyeye_common/vfp/vfpdouble.cpp +++ b/src/core/arm/skyeye_common/vfp/vfpdouble.cpp @@ -552,7 +552,7 @@ static u32 vfp_double_ftoui(ARMul_State* state, int sd, int unused, int dm, u32 exceptions |= FPSCR_IDC; if (tm & VFP_NAN) - vdm.sign = 0; + vdm.sign = 1; if (vdm.exponent >= 1023 + 32) { d = vdm.sign ? 0 : 0xffffffff; -- cgit v1.2.3