From patchwork Tue May 14 00:05:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 164103 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2202931ili; Mon, 13 May 2019 22:36:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6k2ij+FyOV4WmYih4eaNjNW7uOpPAlLhoPiP+WT63DMJNcG0U+y36PMFk2iaaqkpq2pcB X-Received: by 2002:a17:906:6149:: with SMTP id p9mr25915704ejl.55.1557812190854; Mon, 13 May 2019 22:36:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557812190; cv=none; d=google.com; s=arc-20160816; b=tIdrRJVBdfbvLBmV8TG3CmSVK49lnXL7mFWZeJ8tp8fHY4CmR6sz46zbQtDcz0UxtZ Gr2L8keMlg2x2npbyAVWi2Ko8T4TANhK4KplmexJUOuKExg361lR9pNvnGAcFfndOadY u6S41QbN61Cwfmtu2CxITKEXg2I48e6W76jAaINdNhdzux/UqJ12UVerItxpB1dkzQJu Yv0K+lJwBY8mVhqlYglwVznV6noUZtiBypJM03+0CrLNldX7kv8dHSKPXE7iPtj8W/3N PLr0eB1QqRW3cg31TqLuSUHw0vAI4QAp4FZ5GPHWHrp7KYNHBcbhpmcrD8YHhv8v/79m l7Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=eQYUrWBgaVSTGc+XM8Y45frZ2xC0wqtFT2VlLB2AH5Q=; b=ZpfFFWZdf5rZ2h/qQQYclFK1XaNEoSAOoU3YuKW2S5etxu+UI7LkxkLBmpMkKstxxf l2m0WW7qcVryX5tk6BT6H9KhfFWDgCVk1upm0Y1VNO9f7N4BOXqH0d9G6QwzUtFDZCkq tDx5xMHKZLwub6Nnotko7JPolad4OLtYUIBtiUkHa4VNkRZBR0RQdCeZTfbijWQBXFyg OdXvWe0Iv6tUKBv2eLJUCpq6bmQ7hyeQqo/rfsVc2IbAYECG9qXWDSZJ0oF0gO3vIzrv Iia1RaJkITL0fOk1ezkjWGayH9Vjv0pMLjrL/wHMpYq+xkfnRTd+fBoa1zfz9XZH9ZcI N+bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=mH26fGaG; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b25si6313345eje.328.2019.05.13.22.36.30 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 13 May 2019 22:36:30 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=mH26fGaG; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:39607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQQ73-0001cL-TR for patch@linaro.org; Tue, 14 May 2019 01:36:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQQ5d-0000UG-N5 for qemu-devel@nongnu.org; Tue, 14 May 2019 01:35:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQQ5b-0003XQ-LA for qemu-devel@nongnu.org; Tue, 14 May 2019 01:35:01 -0400 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:43229) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQKxA-000329-T2 for qemu-devel@nongnu.org; Mon, 13 May 2019 20:05:58 -0400 Received: by mail-pl1-x643.google.com with SMTP id n8so7266493plp.10 for ; Mon, 13 May 2019 17:05:52 -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=mH26fGaGPiHha/BXvai1qtLdlWeL8KkKkQdpv7U64LKNa6LMcKQiOw6k+yv3LN2fF/ RiL0JuwuO7O6yySkmSmLYKFm6zZf8Rt2tCIpj1vm8OTa4aoSKuOlQeoTcWlkz/2wwOAL 1PWNa3XPElL7RzVDbawZHNWe3QMTmd+Cs/jU3CgLdFWYfl/41AtqGMQ8ZEoQdsenC/kB sXspskInX1amn66CX5UEgLXtflYDMCQVasLuzxe0uPKFfCGNcuJXbJON8wvXEX0yU5jc fU4hRgS+XzzhIYDYyNTHJfHf3HfG4gNFHHxygmpVdn0GS0KAcGVoYzIa7FrIaGLURQ8f oFIw== 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=ApoegiCRnHFeib0yVS5+7At7QHBt+Lt86bCwhLo46PzCMY3MJQKLwnWaQ36D7KrAH9 EoVia/+giL5jppQ9QnBEyXSagLL3fdwlP9sx/KwO1MewVBuq1AB71Acke2Q0z6dJpEd0 H9itaMDI0MQRvcsZVZaC7TLBT88yNFlCYh4DI+6UXOeZT+S++AAgMiSJ7L+a3K48Szc7 N8OcZhMzu3msu8+rWVk+0ufQaTlHCGipNIzcaNRJB2wNbxU6JYaB6mi4fVPdQjSNpgQU Dn2xrxi4+3GhApri3VOQ/TRL8E1nyeSDtXknDqARTNmGQhoRsjnYBFyQrZ0HJ91rUvtY 4Vxw== X-Gm-Message-State: APjAAAUMp/lihf4XQGLJG5vmbnIeraMcazjxwzqqS3R/zj0qGeQXzPdd 3JJ9VEcomjytq+Fy0TmLmFBLq6fnr6g= X-Received: by 2002:a17:902:e104:: with SMTP id cc4mr33070434plb.254.1557792351612; Mon, 13 May 2019 17:05:51 -0700 (PDT) Received: from localhost.localdomain (97-113-13-231.tukw.qwest.net. [97.113.13.231]) by smtp.gmail.com with ESMTPSA id u3sm238151pfn.29.2019.05.13.17.05.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 17:05:50 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 13 May 2019 17:05:15 -0700 Message-Id: <20190514000540.4313-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190514000540.4313-1-richard.henderson@linaro.org> References: <20190514000540.4313-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::643 Subject: [Qemu-devel] [PULL 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: peter.maydell@linux.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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(-) -- 2.17.1 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,