aboutsummaryrefslogtreecommitdiff
path: root/tcg-runtime.c
diff options
context:
space:
mode:
authorTom Musta <tommusta@gmail.com>2014-11-12 15:45:59 -0600
committerAlexander Graf <agraf@suse.de>2015-01-07 16:16:25 +0100
commitb748863a7f7d2996255dd2cb5a20e49785cc7387 (patch)
treedc26f3bd6961280d1ce3fb5200d8298d0419a587 /tcg-runtime.c
parent2791128e2fa8b96d0b81622404655529b0b4fd4d (diff)
target-ppc: VXSQRT Should Not Be Set for NaNs
The Power ISA square root instructions (fsqrt[s], frsqrte[s]) must set the FPSCR[VXSQRT] flag when operating on a negative value. However, NaNs have no sign and therefore this flag should not be set when operating on one. Change the order of the checks in the helper code. Move the SNaN-to-QNaN macro to the top of the file so that it can be re-used. Signed-off-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'tcg-runtime.c')
0 files changed, 0 insertions, 0 deletions