From patchwork Tue Jun 20 16:09:00 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: 9799919 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 F384960329 for ; Tue, 20 Jun 2017 16:10:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF0B720008 for ; Tue, 20 Jun 2017 16:10:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3A4C200DF; Tue, 20 Jun 2017 16:10:27 +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 9AF0620008 for ; Tue, 20 Jun 2017 16:10:27 +0000 (UTC) Received: from localhost ([::1]:49633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNLjW-0002xQ-DN for patchwork-qemu-devel@patchwork.kernel.org; Tue, 20 Jun 2017 12:10:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNLiK-0002tr-9h for qemu-devel@nongnu.org; Tue, 20 Jun 2017 12:09:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNLiJ-0003bP-FP for qemu-devel@nongnu.org; Tue, 20 Jun 2017 12:09:12 -0400 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:34744) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNLiJ-0003ZJ-6L for qemu-devel@nongnu.org; Tue, 20 Jun 2017 12:09:11 -0400 Received: by mail-lf0-x242.google.com with SMTP id l200so4067836lfg.1 for ; Tue, 20 Jun 2017 09:09:11 -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=NofghuVJ80rMYCGO1JbIMbiV7zIFKwlucFEy6n9u9kc=; b=eJq6VsYBJT9pUs3tYoTlkkYGom32qbJceJhjBC2ybtahkkpSBwU6sNLsOG+qBCObAd efSjR8bF374k6j7+CPEg1zd6oY3FvQhEvk4DPiIz4FexjI0/sENC/eN/wlhFEgEqGZor 2HTKaNtio2f4AQcKBEfYJx5ngoRO2c9qqN8APvcb8TIHNcfRnyjWYRvK11SC/fBOxnSE gbjVxOP+A1ery648g5ypkml4CeZ+b5jY028LmQyJRcPeqjoCAa3U8WioyI3XAvlNrAY2 bwfn3k1dJ2NHSVZRoK24lDBWhdH+mKONKWLHzjCUXGyD+7DadviaIGkz+JYSc4x/BeKW Miog== 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=NofghuVJ80rMYCGO1JbIMbiV7zIFKwlucFEy6n9u9kc=; b=iyIGI19eO0FDTTzMQvqLWlYE7fPqhdXFed8Aqj9J0MDGhz9nJLMehut2zas5qrvWA9 X28GkzEgywTJhe7z0DsjY8t+FR2GYucito81Qhd+nCb4yStUgZwBN4dzDU4/RUnm/xyI yQxYAQuF7Joxf6re9kRNTEf7+S3S5hFb3RnlVLO789U3YImOWFd4EG7t9TClZRzthA6l qADJfq0UupRkLM93WDXm8iDoXGUjlVVrwnaSi40fnxastxgzYBEFC6LXs8pwrU9i07Zr PbPGMBjuXuCycjXjoig0b4a7s0sZt1bB6NDmdrgfeQCw9cGXqqQMc5zWvCApSbolCiHX TKtg== X-Gm-Message-State: AKS2vOzEvBQv4d85sTUXhymI/v/E7D7iTL376elRd2h5INCpvpiQLNFT iZ8ZghSiM4Es+6/p X-Received: by 10.25.115.155 with SMTP id h27mr1463085lfk.163.1497974949884; Tue, 20 Jun 2017 09:09:09 -0700 (PDT) Received: from localhost (81-231-233-234-no56.tbcn.telia.com. [81.231.233.234]) by smtp.gmail.com with ESMTPSA id k187sm4063678lfg.12.2017.06.20.09.09.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 09:09:09 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Tue, 20 Jun 2017 18:09:00 +0200 Message-Id: <1497974944-27050-4-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497974944-27050-1-git-send-email-edgar.iglesias@gmail.com> References: <1497974944-27050-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::242 Subject: [Qemu-devel] [PATCH v1 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. Signed-off-by: Edgar E. Iglesias Reviewed-by: Richard Henderson --- 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); + } } }