target/ppc: bcdsub fix sign when result is zero
commit56e0e961ec14f7f89f9d5f20e12b61b9510ed1ad
authorYasmin Beatriz <yasmins@linux.ibm.com>
Mon, 16 Jul 2018 19:03:12 +0000 (16 19:03 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 21 Aug 2018 04:28:45 +0000 (21 14:28 +1000)
tree0e3de82a4e1a87dada31ea99f4b4f6394c6dc912
parent86c0cab11aabb0c2a5cc76825bc05dfe2b367412
target/ppc: bcdsub fix sign when result is zero

When the result of bcdsub is equal to zero, the result sign may be
set to negative in some cases, and this does not follow the Power ISA
specifications as to decimal integer arithmetic instructions.

Signed-off-by: Yasmin Beatriz <yasmins@linux.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/int_helper.c