From patchwork Sat May 4 05:52:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 10929561 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7D71A92A for ; Sat, 4 May 2019 06:00:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68C6428812 for ; Sat, 4 May 2019 06:00:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5602428816; Sat, 4 May 2019 06:00:34 +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=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F3EDB28812 for ; Sat, 4 May 2019 06:00:33 +0000 (UTC) Received: from localhost ([127.0.0.1]:51712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMnir-0005En-Al for patchwork-qemu-devel@patchwork.kernel.org; Sat, 04 May 2019 02:00:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMnbk-0007hA-If for qemu-devel@nongnu.org; Sat, 04 May 2019 01:53:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMnbj-00049c-I5 for qemu-devel@nongnu.org; Sat, 04 May 2019 01:53:12 -0400 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:40377) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMnbj-00048Y-C7 for qemu-devel@nongnu.org; Sat, 04 May 2019 01:53:11 -0400 Received: by mail-pf1-x441.google.com with SMTP id u17so3971243pfn.7 for ; Fri, 03 May 2019 22:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eQYUrWBgaVSTGc+XM8Y45frZ2xC0wqtFT2VlLB2AH5Q=; b=hhX/PqE1FuFEYc3EYflwn2g3vvEjqip7NuPeEf3CR6ivyErkHRmeiu5u5epsNio9OW I4AbgN4qQOPh4P4+qCQR8Y5MhbcNfGC+WRG0guA4bon0suv5vGM5MQKLEacimkfXfLHN oUSkS/E7+dnNuKtBR11+2LzTBmQx8TrIGs8E6i/oIluvcJsvLhxyIYB95YFM41fnrF9E fHe0RXABmZwE1g1pL08PB820ekSJMggYSl2ibrCXlLItfh0ftnNkIlqF2R7KMg+yGp54 zLUWPs1Hc/pjXy94m0s00QzR3rC+BGHmkVt6RCPgFjcdC4d5Om9VZV5toPw+D7VksdtI YlMg== 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=eQYUrWBgaVSTGc+XM8Y45frZ2xC0wqtFT2VlLB2AH5Q=; b=I1pug7PHFz58Xq30Y8LStw/sHKj6Q61kZWuaBszvxrtsrxWIAQJpdqQNYqNnSubokb Ea3X5s5zvGbWoXSmpcF6Th90sjK7rLHWoeHXlIVwBJ1Y2eziElofuz3OFyDlq2DHhSh0 D0UCllhqDuVRFTVAxdncLeZcdVR+03ny9GkBAlsGw+cHe6BoAU5DByafJKshvv5y5K2n RaGj6tDjiGgGpabY8e3tkfsbKEgf7n6hoj4pIT4MN0skXAejuqt0OaJTxb66fOpTBR4B lzCaeGa4c06wwc7h5ySyno7NbmfPGxEVO4tTQ4s7NNE6GVHbIkpIbZrQWD8nKqBtth0R 8KhQ== X-Gm-Message-State: APjAAAVqJJuJWASXj+TlSd2wAFCNvTsGZKioqG0I9/AVgAoIXzoxIU3o NrG/KiwSsprWq88t1X2Q0bqdhja3OXk= X-Google-Smtp-Source: APXvYqxDcWnLvdsGNVzefHM2EjvjnKxoBiSVYLq3CZak99/jxrtJwMBGKz7IRGcFMTEJmvbDmTLJ1g== X-Received: by 2002:a62:56d9:: with SMTP id h86mr6871436pfj.195.1556949189950; Fri, 03 May 2019 22:53:09 -0700 (PDT) Received: from localhost.localdomain (97-113-189-189.tukw.qwest.net. [97.113.189.189]) by smtp.gmail.com with ESMTPSA id 15sm6680423pfo.117.2019.05.03.22.53.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 22:53:09 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 3 May 2019 22:52:35 -0700 Message-Id: <20190504055300.18426-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190504055300.18426-1-richard.henderson@linaro.org> References: <20190504055300.18426-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::441 Subject: [Qemu-devel] [PATCH v3 06/31] tcg/arm: Use tcg_out_mov_reg in tcg_out_mov 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: alex.bennee@linaro.org, david@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP We have a function that takes an additional condition parameter over the standard backend interface. It already takes care of eliding no-op moves. Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/arm/tcg-target.inc.c b/tcg/arm/tcg-target.inc.c index abf0c444b4..130b6bef1e 100644 --- a/tcg/arm/tcg-target.inc.c +++ b/tcg/arm/tcg-target.inc.c @@ -2267,7 +2267,7 @@ static inline bool tcg_out_sti(TCGContext *s, TCGType type, TCGArg val, static inline void tcg_out_mov(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg) { - tcg_out_dat_reg(s, COND_AL, ARITH_MOV, ret, 0, arg, SHIFT_IMM_LSL(0)); + tcg_out_mov_reg(s, COND_AL, ret, arg); } static inline void tcg_out_movi(TCGContext *s, TCGType type,