target-ppc: implement branch-less divw[o][.]
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Thu, 28 Jul 2016 18:14:11 +0000 (23:44 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 7 Sep 2016 02:40:11 +0000 (12:40 +1000)
commitb07c32dc4bdda102803ed6699438fef059c8f408
treec29dd624ba0afdc3945eace5340ace9ac6741cd4
parent5817355ed0d989c72713d89c8d1e9133ec376485
target-ppc: implement branch-less divw[o][.]

While implementing modulo instructions figured out that the
implementation uses many branches. Change the logic to achieve the
branch-less code. Undefined value is set to dividend in case of invalid
input.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/translate.c