From patchwork Wed Jun 21 12:59:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 9801813 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ACE2860234 for ; Wed, 21 Jun 2017 13:17:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BDAB26785 for ; Wed, 21 Jun 2017 13:17:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90CAA280DE; Wed, 21 Jun 2017 13:17:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1F28526785 for ; Wed, 21 Jun 2017 13:17:18 +0000 (UTC) Received: from localhost ([::1]:53905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNfVV-00074F-70 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 21 Jun 2017 09:17:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNfEB-0008C2-33 for qemu-devel@nongnu.org; Wed, 21 Jun 2017 08:59:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNfEA-0008Tf-A4 for qemu-devel@nongnu.org; Wed, 21 Jun 2017 08:59:23 -0400 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:34295) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNfEA-0008TL-2W for qemu-devel@nongnu.org; Wed, 21 Jun 2017 08:59:22 -0400 Received: by mail-lf0-x244.google.com with SMTP id l200so9421401lfg.1 for ; Wed, 21 Jun 2017 05:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=INr7l+BB2F8rmnk2E2vpeBamlgnojMRgfIdSF7r9grs=; b=kpxWUkaGsz0aG63+3cJR3oGGnXUckzj8Lizg1fNgyc/+DwsLr+NVRoN378WWUharx/ Hi0fF2eLOMoLG6v5oyyawP7IInHBUvcVhZfKV2ILW6UPD3smnKOWfka9np6Qm3YhBHyt Bq+eImfkXY7O2Oe8I3+5O2on4N8oDp3hW6RBCNdv7w8IRPNU05iASpbsXC3W+IhbYbjH YqcHxS1WMskCh3YPfjGh7ti8q4WTAPSMu8idtzD3zU2bVEB99FQc8lMASMo1vI+xwjj6 rcVHukx2wDJomt1h+1BXciWo7fNHjhtxyyq8ppIv+4qP/izR730R1gbPLc+SiZTtVxMS D3ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=INr7l+BB2F8rmnk2E2vpeBamlgnojMRgfIdSF7r9grs=; b=YH6GC+CJP+sxDBwdIoLcIhDQxFG16fYWy8rK8+0S8qbxG2roXCPzstCxgI0tujJR9M rdpBlLgUaK4E//sHJR0j8HcXNWo879Jcl4WFmjJggO+IBVNKkpM93Peb6hp5z4lt9iR7 qA1mrOJIWBSXbDDsnatmGeFbBgiysH6UuunclWwt7REvoGAHC+Ufyup2Ip4HAaabtCjE iQGOY1msz/nwTWZ9+V0YLV6iG4m7J9f5/N67owBkyCzSpe5UBOL+EYXbiRB7S3TlcR4V IVrmg5h0YhwLSK+fNZG7trprdSB4w7F2F/ES/DuEBR6AY5dVQpV/XYdWyfeVCLUD6dms eP5Q== X-Gm-Message-State: AKS2vOwZWBHM/F3aNXJPM67lCuetZsUaniPaDZgR9q1w/w0/UX8CKHlt N7kF/qQXDs67J8sw X-Received: by 10.46.9.214 with SMTP id 205mr9911094ljj.30.1498049960480; Wed, 21 Jun 2017 05:59:20 -0700 (PDT) Received: from localhost (81-231-233-234-no56.tbcn.telia.com. [81.231.233.234]) by smtp.gmail.com with ESMTPSA id b2sm3691732lje.56.2017.06.21.05.59.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jun 2017 05:59:19 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Wed, 21 Jun 2017 14:59:11 +0200 Message-Id: <1498049955-28646-4-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498049955-28646-1-git-send-email-edgar.iglesias@gmail.com> References: <1498049955-28646-1-git-send-email-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::244 Subject: [Qemu-devel] [PATCH v2 3/7] target-microblaze: dec_barrel: Add braces around if-statements X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sai.pavan.boddu@xilinx.com, edgar.iglesias@xilinx.com, alistai@xilinx.com, rth@twiddle.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: "Edgar E. Iglesias" Add braces around if-statements. No functional change. Reviewed-by: Richard Henderson Signed-off-by: Edgar E. Iglesias --- target/microblaze/translate.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index e959de7..504ed88 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -681,13 +681,14 @@ static void dec_barrel(DisasContext *dc) tcg_gen_mov_tl(t0, *(dec_alu_op_b(dc))); tcg_gen_andi_tl(t0, t0, 31); - if (s) + if (s) { tcg_gen_shl_tl(cpu_R[dc->rd], cpu_R[dc->ra], t0); - else { - if (t) + } else { + if (t) { tcg_gen_sar_tl(cpu_R[dc->rd], cpu_R[dc->ra], t0); - else + } else { tcg_gen_shr_tl(cpu_R[dc->rd], cpu_R[dc->ra], t0); + } } }