Message ID | 20230227054233.390271-69-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2228012wrb; Mon, 27 Feb 2023 00:12:39 -0800 (PST) X-Google-Smtp-Source: AK7set8BIEnNF4BC1MtGw3GsAlYOxH79q7i5+qLjG+0XFoWhM6zgsxv1rkZB4bEOvt3YJcWmSeIS X-Received: by 2002:ad4:596e:0:b0:570:3d41:d5ba with SMTP id eq14-20020ad4596e000000b005703d41d5bamr47087462qvb.10.1677485559089; Mon, 27 Feb 2023 00:12:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677485559; cv=none; d=google.com; s=arc-20160816; b=zt8d8JCu/Zml5w/abce0wq72++eWHFIfvWec9JiFxzz/UC1L3HWgubMuODWov4vf0q 0nNB8rSx1aeluE+Yg7jFqKxnQrA2vLQ1Wjh1T7iszZS2YybLbUjQfWz6b/MbxMw/Zk8R uUr320SOEjEOr7q88g1HwXAkj5Ddzj5XzLy51Bey+E1E4LRO7cCHEsydzds4uFfIAsh6 51yOoRWaYxjUCdOE310wfugQB4r0/c/XO+2jNOJSyCoWkK3YBrzLGSjdzqZnh7L6ilBp qrTf0dt7+TOCHtB1aEmncuNlQIHOiB0NYIpfl/Y/+03hV9xHYj0Rp7j9x/9kfpwnOA+R lMgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=u2rLxWiBoXc5cqrNuTYk7pclm25I7T2ovSFzBdL97lE=; b=Ebegrmcr13AfcZwT9MFKL79i8xuRmaCGenaExqtaw++psPxksFnLdHV3g7YQs6nefB AGIj6tlwewBRE3SU+zmnAAZsipOdGd50aY2DtRex+qVWMRSl1MgcFiUYjCtFOES6hGNb 4zIE7H2lUI9Q+93KR976wunZL1HWRjlJ0jF/fUSZB3bCXUb5XuWfENb0mrzQL2bk3fXd d2xm2NV5tRa37jLbBVE/rHxnREgOGZw6R16SDSok2j+Sac74M2aau/EXRyPHAif+J0dO vhK/oseUkoZHld8ioWcP+l1t4yuBkYZjIgItiBM6EUt8YWYRVxvQF2VTt9Bw4pGT8Lel Ownw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="HoQXU/BH"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t1-20020a0c8d81000000b0057264fb27b2si6001645qvb.10.2023.02.27.00.12.38 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 00:12:39 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b="HoQXU/BH"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1pWWOP-00018e-KU; Mon, 27 Feb 2023 00:49:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1pWWNX-00054B-EB for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:48:51 -0500 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1pWWNU-0007gw-44 for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:48:50 -0500 Received: by mail-pl1-x633.google.com with SMTP id i3so5569989plg.6 for <qemu-devel@nongnu.org>; Sun, 26 Feb 2023 21:48:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u2rLxWiBoXc5cqrNuTYk7pclm25I7T2ovSFzBdL97lE=; b=HoQXU/BHAs6fJkA+lfnWc1mmXt62N7ZgQsed1Bajm4nRrhAYV/PsLXEMKtTfU4h6J4 icjplpZu5VVYRLF6OioHGNAt6vjPlSYyP0V/1uc4zN+6NPPdU7YtbLQLubX48+V6AAvy lzZDFiZR4q/48aAvXH2gIh0sGIJMU1Xua1HK8EVDRrrT7uJbvadMRWp/EnvCazFo8ZRh 1TjbWUzAhPNcKnHgMju/TYQlrRlNqxIpw5JUk5o3wehkHy36u/7qQQVEDsESu6vTXXFt UKucsp8odwj/ju1VZNq4iR0OVJ/CvTdQu/LIqhpETc07iK7zrFpNEMhmmgKIpEbaLAhv RKGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u2rLxWiBoXc5cqrNuTYk7pclm25I7T2ovSFzBdL97lE=; b=xIgFIqPsez3sjF4UBJjDSJEp+UJXcA4pd2sJlGeMdKoSfkVqQxRW7YctUiu6VFVK3S fgOQlReMhxrQyDXO8+uheimbfFQZ2lqlW5M6PRTc+Gulm91xwMMeDCYdf2CVsHXAPDCi MdEJYDdQKB/Y15JmETGYCajb3RbXpDbeIUBEuRHySDyR+4VihMs3lUkjQgSOXVULZIeD MJ2ReeiXIuV1Io1bT8lXcz4q+Y4tA00hMMN52yS/f4ozdF/AB1ayAjPTwBQ9tfZNOquj 0wa1Ifc6Xws/dLN+8uw6eYhC5d0S9iDrVqgrVGKzl5Q05aOqiNAs1Fh0DhgdpSk098nb D8Uw== X-Gm-Message-State: AO0yUKW/685yiWjUmpGjGwZRwvilpmkLiZq/We787kmZUeHmw21mhy5H 9wespJxjxAdnEZMzSMqq21+JFrb6DtbuqWGrMWs= X-Received: by 2002:a17:902:ce81:b0:19d:181f:511 with SMTP id f1-20020a170902ce8100b0019d181f0511mr2158458plg.30.1677476924766; Sun, 26 Feb 2023 21:48:44 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id im16-20020a170902bb1000b0019a983f0119sm3553986plb.307.2023.02.26.21.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 21:48:44 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, jcmvbkbc@gmail.com, kbastian@mail.uni-paderborn.de, ysato@users.sourceforge.jp, gaosong@loongson.cn, jiaxun.yang@flygoat.com, tsimpson@quicinc.com, ale@rev.ng, mrolnik@gmail.com, edgar.iglesias@gmail.com Subject: [PATCH 68/70] tcg: Replace tcg_const_i64 in tcg-op.c Date: Sun, 26 Feb 2023 19:42:31 -1000 Message-Id: <20230227054233.390271-69-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227054233.390271-1-richard.henderson@linaro.org> References: <20230227054233.390271-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x633.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg: Remove tcg_const_*
|
expand
|
On 27/2/23 06:42, Richard Henderson wrote: > These three instances got missed in previous conversion. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > tcg/tcg-op.c | 12 +++--------- > 1 file changed, 3 insertions(+), 9 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 53e96b5b69..9753b08f6c 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -1547,9 +1547,7 @@ void tcg_gen_muli_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2) } else if (is_power_of_2(arg2)) { tcg_gen_shli_i64(ret, arg1, ctz64(arg2)); } else { - TCGv_i64 t0 = tcg_const_i64(arg2); - tcg_gen_mul_i64(ret, arg1, t0); - tcg_temp_free_i64(t0); + tcg_gen_mul_i64(ret, arg1, tcg_constant_i64(arg2)); } } @@ -1946,9 +1944,7 @@ void tcg_gen_clzi_i64(TCGv_i64 ret, TCGv_i64 arg1, uint64_t arg2) tcg_gen_movi_i32(TCGV_HIGH(ret), 0); tcg_temp_free_i32(t); } else { - TCGv_i64 t0 = tcg_const_i64(arg2); - tcg_gen_clz_i64(ret, arg1, t0); - tcg_temp_free_i64(t0); + tcg_gen_clz_i64(ret, arg1, tcg_constant_i64(arg2)); } } @@ -2000,9 +1996,7 @@ void tcg_gen_ctzi_i64(TCGv_i64 ret, TCGv_i64 arg1, uint64_t arg2) tcg_gen_ctpop_i64(ret, t); tcg_temp_free_i64(t); } else { - TCGv_i64 t0 = tcg_const_i64(arg2); - tcg_gen_ctz_i64(ret, arg1, t0); - tcg_temp_free_i64(t0); + tcg_gen_ctz_i64(ret, arg1, tcg_constant_i64(arg2)); } }
These three instances got missed in previous conversion. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/tcg-op.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)