From patchwork Tue Mar 7 18:34:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 659841 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2541153wrb; Tue, 7 Mar 2023 10:37:31 -0800 (PST) X-Google-Smtp-Source: AK7set9nk+iH1247jZ2vx8GfSDdU2mCkloMqjFeHR330AWsbrVb4Pl6UbXJlUSwZ4rrsfDLHXxyT X-Received: by 2002:ac8:5a08:0:b0:3bf:daae:7ee3 with SMTP id n8-20020ac85a08000000b003bfdaae7ee3mr27375734qta.53.1678214251347; Tue, 07 Mar 2023 10:37:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678214251; cv=none; d=google.com; s=arc-20160816; b=Kx3ydglwvYyN9tJ7QOKuSND1IisV4DzuQiwfqkYTcaLikKlwsVIbLzK1+ybom7AN9z 6GXwgDekCZs3bS2xOul3nTJnT/ngKlN1SyIHFYtXmWsoOj5OpPXqK9qdyP+GEgIqbZ7C 7VszT+n1ZqcwZFUbPDCpIJG6Ulb5WJDz8B92fpBYfWKMnurmowm/svLJw0IIkx5gH50J WKl2tCkETgWrI76+09er+HWFGebHZ0MIH/8mCovc6GcfYIkSLW/dlgAneTFtEctvkq2o gFDpYvOXs77K1YO+3d01XVX2KtbyAOf0pOzVs3wiypgXjlQ0572UZrQW3p7yr53fcDkS gKKg== 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=yBhN8QlUZ4nucIQSZUIgNxSQjC7OQ+YVg5SJgGHSvZs=; b=kYv240znyOd5CHIIHyPVmh3O0LYVYEdWJnGRmhoRT1sS3rOdipdvc/YUZ6pmxJG/96 0/aJMjW0QB8pVou39xxOO+2km4lWYZ0crvl6/mWKF2BQB9J9uinHu/BI5biRi8uLka6u Ytf+qe2QGwJ9I7MvjKrT5MgJG/p9WE2UgcsoXduibGfm8H4rYRgk7NCicNDqExewam8e fUUJYT1SpP8ZURQni+x6imcnCcHJKI4yVJGlUgj2PaLxAhGZDEO6uyAezjY4xtw6EGYQ wLaNqh87dZZLLegImzCk9d8PHLD67SqGcL/NuEXr3/hkObn781qGEApyO2VbbTAYhPGb Wqiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FNqYGCT6; 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 c80-20020a379a53000000b007061b5908bfsi9114133qke.347.2023.03.07.10.37.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Mar 2023 10:37:31 -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=fail header.i=@linaro.org header.s=google header.b=FNqYGCT6; 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 ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZc9b-0003bc-Nn; Tue, 07 Mar 2023 13:35:15 -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 1pZc9Y-0003Z7-OT for qemu-devel@nongnu.org; Tue, 07 Mar 2023 13:35:12 -0500 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZc9W-0007jJ-Us for qemu-devel@nongnu.org; Tue, 07 Mar 2023 13:35:12 -0500 Received: by mail-pj1-x1029.google.com with SMTP id oj5so14116940pjb.5 for ; Tue, 07 Mar 2023 10:35:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678214109; 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=yBhN8QlUZ4nucIQSZUIgNxSQjC7OQ+YVg5SJgGHSvZs=; b=FNqYGCT694FjqclTICyJ8wdpIIai8xJg9D7/fmxJO7pauqGgZCb3v2rtfc85rMUjJX SOex4xQ9xidAXx9pWm27QH3m46DAgS/l9fW+504Ki/cpPpMkBmvkQ+VMncIF57b1gOfG OBlxnbHLAXL+p+ChVijVXdiNhVSz4GBTbcIky6KcWaRkSTKErMS08LV4Zp5OD8bad0dv KOOc1YEFU+0hSn1oz5Jbqe9/tjiFl15BN9+6A2Xq2YhLB4gdfjGCuBbAvfaPz9HAMG8v 9Zow8MtL0Wvf+CqVZEdey5N9QmIXW8HoJMwpg0xyls8ZkzB+QQ+JYAdpb4iRDTXOvF5i /A1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678214109; 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=yBhN8QlUZ4nucIQSZUIgNxSQjC7OQ+YVg5SJgGHSvZs=; b=zsskN1QEak5KsANXXG6I5KVCZdUYuWFLSnbVnW+oN4/COp6iHrXQMxMwWo0sssRNKr SGO8eGMaxLyB74PLOgqgcoLAmtaaC3F87Cev05gRAVifLO0TvUMEHQ9MasMp4U3E3Pwo mxKKFQ1XRUEs3JHO3XrORS+IWnFwi4kI2iSUhR4SbRslamSIlGFDS91scGLJIDipZr4D YVxJ3KQi0dVubnjCrAcEltvGe+FQqsY6UzCW8tkcc3aDNMLefN8XYTUDfgycIJW3N9CN mCG1JM/WnIA7Cbryz5lQg6k9NCR83IY+mQY7RVipV9BZzUgu2Pi6fby4tjHmGvxG3FVB 6qJA== X-Gm-Message-State: AO0yUKUIddGsYCVxABzkirYU+l4KjxVPfATpoiaY77s1jTDSyVa7tbe0 YnbGjqnxJBJd3UGw/HYll7s9DZEK8BayNGRltwQ= X-Received: by 2002:a17:90b:3885:b0:234:409:9754 with SMTP id mu5-20020a17090b388500b0023404099754mr16066674pjb.45.1678214109604; Tue, 07 Mar 2023 10:35:09 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:b1e0:bfd9:8b1a:efeb]) by smtp.gmail.com with ESMTPSA id q1-20020a17090a1b0100b0022c0a05229fsm7757940pjq.41.2023.03.07.10.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 10:35:09 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 07/25] target/arm: Avoid tcg_const_ptr in gen_sve_{ldr, str} Date: Tue, 7 Mar 2023 10:34:45 -0800 Message-Id: <20230307183503.2512684-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230307183503.2512684-1-richard.henderson@linaro.org> References: <20230307183503.2512684-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1029.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 This hides the implicit initialization of a variable. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/arm/tcg/translate-sve.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/target/arm/tcg/translate-sve.c b/target/arm/tcg/translate-sve.c index 3ca60fb36b..92ab290106 100644 --- a/target/arm/tcg/translate-sve.c +++ b/target/arm/tcg/translate-sve.c @@ -4206,8 +4206,9 @@ void gen_sve_ldr(DisasContext *s, TCGv_ptr base, int vofs, } } else { TCGLabel *loop = gen_new_label(); - TCGv_ptr tp, i = tcg_const_ptr(0); + TCGv_ptr tp, i = tcg_temp_new_ptr(); + tcg_gen_movi_ptr(i, 0); gen_set_label(loop); t0 = tcg_temp_new_i64(); @@ -4284,8 +4285,9 @@ void gen_sve_str(DisasContext *s, TCGv_ptr base, int vofs, } } else { TCGLabel *loop = gen_new_label(); - TCGv_ptr tp, i = tcg_const_ptr(0); + TCGv_ptr tp, i = tcg_temp_new_ptr(); + tcg_gen_movi_ptr(i, 0); gen_set_label(loop); t0 = tcg_temp_new_i64();