From patchwork Mon Jun 26 15:39:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 696457 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3298850wrm; Mon, 26 Jun 2023 08:44:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7T7xRM5lJNGEIgZzh9RxfnF43V3QKx4Iu9AMnnwG22/BnMYJGJBXjZ2eh6S1ZSUvbwDCtt X-Received: by 2002:a05:6102:11f2:b0:43f:5a1b:fcbf with SMTP id e18-20020a05610211f200b0043f5a1bfcbfmr10909413vsg.13.1687794259703; Mon, 26 Jun 2023 08:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687794259; cv=none; d=google.com; s=arc-20160816; b=d2AfCYjynWl1sUyz4+BqD9mx60o1K5tAsS+m1dvtjAZsPNClvz3+hKdMCxtakOBaOR IchfcYuHbsl7r4DObshDzQo/AuaYd6YgJfbT07yg+QvRn0hRRvDQUYQei5cDBnc5NrnM C4nlk+2OWDXq5Mi/GKkg2ilN7bop2BcNI8ebKX03nmM8ShUubOddmZsebpOSl+Ea+kMY 7+XJXjBgAKzfYOjCCH9AXyNYVsSiJUki67qSgbAohmWtvYzhOqIoz20N8Xve6Jc2hSeF bFPgQ8hTXhh9TBgS/F5C9KjomC3+SyO7nLFE8TMjqZC90tO4edMrn5xuM3stKNw3c6kA 9AXg== 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=LVZhBdoa6t8LsyKUPS+d+sGukihmPgjTFeL73xSC6MM=; fh=+Z6aVl4ZBUh6D4S/aQttPH5+kS+uDfcFa+Us0SSxfm4=; b=wateAzJwimDPRG/lxwIp1RgdlvN0tJI763v9Fz9XnXN2Sg50pie3QQIoajuJctttcm rk9sMOL88pvD8hWipkwix3KNaFFMalkts2e97t8qYW/hBiXHL9gFf5gLLsXd2ER3yMfU lI2nmuMq/geqm1qaU/3f7fKyTRvExXU7B5qEh7O1NFl2HvVKT2ese1UWqBMOb+6Hewnn /q7ZwpdsK7eoJsfC/IxlmX5P8c7bOvyuc0CQQ65Rcfj/qbFQdZvCsgsFNNx+XU6wLWz+ JAIwW2k1ClFlhTDM1tj+6vqezATPeVP86A/i2xswdZ+ubX4jHoIdo//fvaF6J6AErjdI KJig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zxcoJcnh; 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 hf7-20020a0562140e8700b00635db66ae09si1196325qvb.518.2023.06.26.08.44.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jun 2023 08:44:19 -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=pass header.i=@linaro.org header.s=google header.b=zxcoJcnh; 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 1qDoKg-0001KO-V6; Mon, 26 Jun 2023 11:40:51 -0400 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 1qDoJs-0000Jg-EL for qemu-devel@nongnu.org; Mon, 26 Jun 2023 11:40:07 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDoJp-0002rU-9R for qemu-devel@nongnu.org; Mon, 26 Jun 2023 11:40:00 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-313f2a24cb6so1144085f8f.0 for ; Mon, 26 Jun 2023 08:39:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687793996; x=1690385996; 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=LVZhBdoa6t8LsyKUPS+d+sGukihmPgjTFeL73xSC6MM=; b=zxcoJcnhVcZJXLy79jdrfZ5lxLINWUrXGcM2iZ/nbxMuO4/XsVaprg8QJNPPvuZM9C vQZES8ncolHRNuP+iBTfVPjyc48pe6eQbM4PRlyDcKtV9gIVHNzlYWh60ELVc2VRridF oHukmnrJcyrdXi23ENjwyLJRV/QcZvr7WfWMMTLeWs6TnkKTx+YkDI0Xs6oxwSEkMumj Jh1APP1AnfrRwo94eUKWLaQ9k+I11JMh82eV91dKwrb9l1OWSQ6IdiViUrTVXvGe13hy IJeIslXg9IAV9Vqkfc9F5gk3DP+SsqKcdzot8D7yfNqJcgeb/KsVkqJ+rJa0aiRBY/2R ThwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687793996; x=1690385996; 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=LVZhBdoa6t8LsyKUPS+d+sGukihmPgjTFeL73xSC6MM=; b=GYp4MyARF3LZiHqpeapHQrgcawlIrpOabPIoskrkrdUS9HjKMc8OGoBJzP3/t/IL+N IB+kRGxVAo1FArO6KufsF5hdMT3Ybz5XlgH8z0mTb/cysITe2E1Num1zpAovHViFgaoK fTBiIbu1yhXVXo7Ed/8iGUycyQUMOex9LOds6by5+xmxWskIHOtLlwcWGy5mfr2UVQIb nMH5HtILPXRwmyIVeN1EWIGPqUbo5oZw8D7f6z5YYMD1ZmqY+5/YoNlGB1bIcNOn8GEh PbAOP+gCSh5z/WLm9/r541y7gLLYkYgQS/CfvWbOioa+XKfM4vqJSBKuDFfpzAH75Cxd eflA== X-Gm-Message-State: AC+VfDzRzVIzqZhCYlvjLEPWM4mWoeI0jfZZyMbQoixKh7OAx7+rEzTl c3FmkWDyN24rgE+jlr2ULO+XMzTHCjUpneBRc86Gk63+ X-Received: by 2002:a5d:5344:0:b0:313:df09:ad04 with SMTP id t4-20020a5d5344000000b00313df09ad04mr6684470wrv.57.1687793995983; Mon, 26 Jun 2023 08:39:55 -0700 (PDT) Received: from localhost.localdomain ([139.47.42.170]) by smtp.gmail.com with ESMTPSA id t1-20020adfe441000000b00313f45f74a8sm2164178wrm.103.2023.06.26.08.39.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 08:39:55 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Max Chou , Daniel Henrique Barboza Subject: [PULL 15/22] tcg: Fix temporary variable in tcg_gen_gvec_andcs Date: Mon, 26 Jun 2023 17:39:38 +0200 Message-Id: <20230626153945.76180-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230626153945.76180-1-richard.henderson@linaro.org> References: <20230626153945.76180-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x432.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, T_SCC_BODY_TEXT_LINE=-0.01 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 From: Max Chou The 5th parameter of tcg_gen_gvec_2s should be replaced by the temporary tmp variable in the tcg_gen_gvec_andcs function. Reviewed-by: Daniel Henrique Barboza Signed-off-by: Max Chou Message-Id: <20230622161646.32005-9-max.chou@sifive.com> Signed-off-by: Richard Henderson --- tcg/tcg-op-gvec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/tcg-op-gvec.c b/tcg/tcg-op-gvec.c index 95a588d6d2..a062239804 100644 --- a/tcg/tcg-op-gvec.c +++ b/tcg/tcg-op-gvec.c @@ -2774,7 +2774,7 @@ void tcg_gen_gvec_andcs(unsigned vece, uint32_t dofs, uint32_t aofs, TCGv_i64 tmp = tcg_temp_ebb_new_i64(); tcg_gen_dup_i64(vece, tmp, c); - tcg_gen_gvec_2s(dofs, aofs, oprsz, maxsz, c, &g); + tcg_gen_gvec_2s(dofs, aofs, oprsz, maxsz, tmp, &g); tcg_temp_free_i64(tmp); }