ppc: Fix xscvdpspn for SNAN
commitfa7d9cb9600ab100c318a1de3ed6f4b4fcbad506
authorPaul A. Clarke <pc@us.ibm.com>
Tue, 20 Aug 2019 17:26:04 +0000 (20 12:26 -0500)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 28 Aug 2019 23:46:07 +0000 (29 09:46 +1000)
tree451fe830671a4972272a9c1848150b89f7f9c6ef
parent256be7d07a0c1f9d8e2076aa4f7ca4fc048f6838
ppc: Fix xscvdpspn for SNAN

The xscvdpspn instruction implements a non-arithmetic conversion.
In particular, NaNs are not silenced and rounding is not performed.

Rewrite to match the pseudocode for ConvertDPtoSP_NS() in the
Power 3.0B manual.

Signed-off-by: Paul A. Clarke <pc@us.ibm.com>
Message-Id: <1566321964-1447-1-git-send-email-pc@us.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
[dwg: Replaced description with clearer version from rth]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/fpu_helper.c