OSDN Git Service

ppc: Implement bcdsr. instruction
authorJose Ricardo Ziviani <joserz@linux.vnet.ibm.com>
Tue, 10 Jan 2017 02:10:12 +0000 (00:10 -0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 30 Jan 2017 23:10:14 +0000 (10:10 +1100)
commita54238adac8e6fc4ba8bffe8299216b73ef3d3ee
tree99e324e66d452da92a8b5e5b7ae8280f0a9aaa4f
parenta49a95e9e4dc2652cdc8a1e4fb1bfb66dba2e1d8
ppc: Implement bcdsr. instruction

bcdsr.: Decimal shift and round. This instruction works like bcds.
however, when performing right shift, 1 will be added to the
result if the last digit was >= 5.

Signed-off-by: Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/helper.h
target/ppc/int_helper.c
target/ppc/translate/vmx-impl.inc.c
target/ppc/translate/vmx-ops.inc.c