From patchwork Tue Mar 7 17:58:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 659806 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2525816wrb; Tue, 7 Mar 2023 10:05:19 -0800 (PST) X-Google-Smtp-Source: AK7set+hzvbPIxVlmW1kpbu2ePZA70Op09tLhp3Yfd99+HQIKH2zX8ulodf2LTAMkK0s9qp/39do X-Received: by 2002:a05:6214:f05:b0:56e:b25f:3602 with SMTP id gw5-20020a0562140f0500b0056eb25f3602mr29803100qvb.43.1678212319164; Tue, 07 Mar 2023 10:05:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678212319; cv=none; d=google.com; s=arc-20160816; b=yT6e3Y338ijq1ZCPpdxdA30d3eYy5FUogMQJHMQt+1+iWUM5HY/VnE1xxXJbrNzVHO YUB9zimdoT9YH+Yf4+T3bt9rQ5sv8utvT9MTB7wEtlWnounDRe3HFJ5dil1X31/DvZrg FbPNEf+Umx4khVKT0hxTBk4WWUD1cNn6tEvbbbUR7XvWL63u5PtrlHKx+vL/n2QAwDS/ tCwDgCj3L/KMJQ6uKMaGGhde87jsRuSqwpXBleET+aWKJ5erdLzfDbWDhUYxxmW1ANV2 JXD7VK1OQrLhB6JyuaVCfdX4XnqMFpnBiUTKROaniL4dR/tolCtTHACBmdwv6y5TIIfN LXoA== 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=9ldzdR2EfTmKQwO2Sl/PN1z7zGGl5r/t6qa5lRBzrCg=; b=LlG6PzrPmlqNt3xEu8AqqX4F9x523CXJjDB6LGaiOhKI5dmH+HG4B/EJRpvzbHMtsG wfY2Hyd1x4Beq9zv3yRscudc4UIAIAob6v0Fz4YLxvx5tnpdsPDdI8L4MEVDqBzodOgk 4t63hoNveaZuKMNCUslbX0CZzHXy7ARnFYihhY0OlxRlmTVgRFfIw5L4tyTCaGzBXmzK XywShDXgvcgYOlO6c0ZnS8h5PMTmguTLKwTPndtokBwRTactBFCGGFDYAGfWrGFKyUz9 yk3rAykR8tdMzl5tT4cHcISgEQxSD8clICs3UFMe6Kr3V8Qo0X0KvPqfhODjlQM9zBf5 tKJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="bXeYP/b8"; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f9-20020a0ccc89000000b005353068a8acsi9966652qvl.387.2023.03.07.10.05.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Mar 2023 10:05:19 -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="bXeYP/b8"; 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 ) id 1pZbeD-0004DE-4r; Tue, 07 Mar 2023 13:02:49 -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 ) id 1pZbe9-0003sd-V0 for qemu-devel@nongnu.org; Tue, 07 Mar 2023 13:02:46 -0500 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZbe8-000162-A9 for qemu-devel@nongnu.org; Tue, 07 Mar 2023 13:02:45 -0500 Received: by mail-pj1-x1036.google.com with SMTP id h17-20020a17090aea9100b0023739b10792so12664238pjz.1 for ; Tue, 07 Mar 2023 10:02:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678212163; 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=9ldzdR2EfTmKQwO2Sl/PN1z7zGGl5r/t6qa5lRBzrCg=; b=bXeYP/b8EzHAL2wN0u1rHxHeSGXpy7xU62x8vyBlEPZpFNyzeO+sLJIKqOkGl8lCUe 9ZTFWPIgyV4IAEIHxzLNDexyvmrnSAc/OrPSTIKQ8e843u4FyrODUd3vhp/W8vMdSSBk IopCFH2H1ibXnBmjNFCyaJ5KvnEQMB67gH+PFu7KqczRQCtjih4if0TJ5SoSlWDVuKV1 tWgFxqjbmo0pkcKhrIKQ9X3Z7OlFafMTGd92QQHY21FB0/lip06At+vGhw9F+g/4kVrf 9ArwosA4gws4K2ixowLc6ImF5McMciItu3+5kgcucKwhW9fMvvJt5U5rrK6XbyE1+T5H qBHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678212163; 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=9ldzdR2EfTmKQwO2Sl/PN1z7zGGl5r/t6qa5lRBzrCg=; b=U4SymvP5zNqFsxjh2plNcm0N6HA+dI1lzFyI2DmC7mVZnbtOUpHgD7/BAXmtN3tKDL Rtrz8rz+sCR3QnZT+IH8fjwT2XHH+6Bd2AmjcpkRhRPLXkn6RB/eKgnJci/mUWCAEnle 2Yd4iha3d6KS0G2+VvbpZikKf4HHDiHi2ov+YB6fzCf2EZo/9o1vHcJ2mdwrrBkNOBUG eywdg6cg0Pj7y1u+1W4AR8mCPDkHRVHgX8VHl9ucvwS5Ga8IBKO4tLqZEnW5a8wYmh8z OM6+FiNXVS8016mn5lrUKV+B5mxC54WQ+VHlrlmLGnOGW7IBnarDwc630t6wDkPQd0AB ZFwQ== X-Gm-Message-State: AO0yUKUllUxYLFeUSbNlouPeTkx2zjFCDVrLaOTNebQlX0QlSasZWxDP eLxowAY8bM65Che13SYHKedeGPUPMi9I6bsFhrk= X-Received: by 2002:a05:6a20:7785:b0:c7:13be:6de9 with SMTP id c5-20020a056a20778500b000c713be6de9mr12063400pzg.14.1678212163483; Tue, 07 Mar 2023 10:02:43 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:b1e0:bfd9:8b1a:efeb]) by smtp.gmail.com with ESMTPSA id z4-20020a63e544000000b00502fd70b0bdsm8080441pgj.52.2023.03.07.10.02.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 10:02:43 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 67/67] tcg: Replace tcg_const_i64 in tcg-op.c Date: Tue, 7 Mar 2023 09:58:48 -0800 Message-Id: <20230307175848.2508955-68-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230307175848.2508955-1-richard.henderson@linaro.org> References: <20230307175848.2508955-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1036.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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org These three instances got missed in previous conversion. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/tcg-op.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 1a039a292c..ddab20a6a6 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -1563,9 +1563,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)); } } @@ -1962,9 +1960,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)); } } @@ -2016,9 +2012,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)); } }