target-ppc: Fix xscmpodp and xscmpudp instructions
commit855f7a657e6061c241b5aa52c2a22cc94be4a63b
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Wed, 23 Nov 2016 11:37:12 +0000 (23 17:07 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 30 Jan 2017 23:10:12 +0000 (31 10:10 +1100)
tree65e7216f11528bd0882ba670399a03c75c38a73e
parentefa7319619e92809c12b5f12f7f5bcdb044e7e21
target-ppc: Fix xscmpodp and xscmpudp instructions

- xscmpodp & xscmpudp are missing flags reset.
- In xscmpodp, VXCC should be set only if VE is 0 for signalling NaN case
  and VXCC should be set by explicitly checking for quiet NaN case.
- Comparison is being done only if the operands are not NaNs. However as
  per ISA, it should be done even when operands are NaNs.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/fpu_helper.c