ppc: Fix emulated single to double denormalized conversions
commitc0e6616b6685ffdb4c5e091bc152e46e14703dd1
authorPaul A. Clarke <pc@us.ibm.com>
Mon, 19 Aug 2019 21:42:16 +0000 (19 16:42 -0500)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 21 Aug 2019 07:17:39 +0000 (21 17:17 +1000)
tree282b52c81c9e78adb17b9a41e312d9e33867159d
parenta7b7b98318f7d483e016f0f412df2b8a7dc1d636
ppc: Fix emulated single to double denormalized conversions

helper_todouble() was not properly converting any denormalized 32 bit
float to 64 bit double.

Fix-suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paul A. Clarke <pc@us.ibm.com>
v2:
- Splitting patch "ppc: Three floating point fixes"; this is just one part.
- Original suggested "fix" was likely flawed.  v2 is rewritten by
  Richard Henderson (Thanks, Richard!); I reformatted the comments in a
  couple of places, compiled, and tested.
Message-Id: <1566250936-14538-1-git-send-email-pc@us.ibm.com>

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/fpu_helper.c