From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSkg1-0004Yt-LU for qemu-devel@nongnu.org; Thu, 28 Jul 2016 08:44:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSkfx-0006IR-Ne for qemu-devel@nongnu.org; Thu, 28 Jul 2016 08:44:37 -0400 Sender: Richard Henderson References: <1469688581-30853-1-git-send-email-nikunj@linux.vnet.ibm.com> <1469688581-30853-2-git-send-email-nikunj@linux.vnet.ibm.com> From: Richard Henderson Message-ID: <3cc64f05-9d20-e7d2-878e-9eb7806dea83@twiddle.net> Date: Thu, 28 Jul 2016 18:14:22 +0530 MIME-Version: 1.0 In-Reply-To: <1469688581-30853-2-git-send-email-nikunj@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v1 1/8] target-ppc: implement branch-less divw[o][.] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikunj A Dadhania , qemu-ppc@nongnu.org, david@gibson.dropbear.id.au Cc: qemu-devel@nongnu.org, bharata@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com, benh@kernel.crashing.org On 07/28/2016 12:19 PM, Nikunj A Dadhania wrote: > 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 > --- > target-ppc/translate.c | 48 +++++++++++++++++++++++------------------------- > 1 file changed, 23 insertions(+), 25 deletions(-) Reviewed-by: Richard Henderson r~