From patchwork Tue Apr 26 16:30:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 566046 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp3772677map; Tue, 26 Apr 2022 10:02:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx98InzWO4jHqa+Bif/d9kLLlpU56Ps2ID/flM4wuVIbeW3T/VOu27t96/KiuXS5yxnKvjP X-Received: by 2002:a05:6902:8c:b0:631:ef56:6694 with SMTP id h12-20020a056902008c00b00631ef566694mr21547783ybs.194.1650992543601; Tue, 26 Apr 2022 10:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650992543; cv=none; d=google.com; s=arc-20160816; b=IKWp+qzV9mRkU/dfkfDIfrdRDlLKsmu2oRkLpRnwsTuDd0FnplkCe4MuxJESCGJSS9 l6AfaYHAWJVRy5NoGQd8i1cmJIqgI24D8JTwZPWq8SlWz4hXzXMwbVArsST0uPc7LkBg 8qCMuGW29C4VkA1drEWdkkRJBaIKC+4jrGg7K2C3vNJI7b9DSzqDjqh71WiOrWIzLMkj Kd1oeKYREa8EiYfEqWa4DeYWn0OmEj44Rzmtgk8nARYpkjxMlep486g9PhLKXD5AE30O SdV1/sIxJUuNVYlGdAmkF8bWdL3nMYBiz67lt88mh3dSEBZ8h9q/mFkqkxZ5dd6Vn0g2 pvjg== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=ACpxH01JxErVg11OMtWk96IeWBCSCK3eCBc3FiBtZOg=; b=reRQlvUBHmQPJWzd8NgWItuW9PCk+LvoVmOFE1X1rypvU8xHHeWLFOgx78bVEdm86X fw0E7DoJqBq3kY1ULbviAsFrIU5AG5CUro0LxaDRlc4DhZzPi0HxI3LC3GgcrRrAHZUq Tgbqe79PI5z1lvxf60ls7xHttAV3fnfngiR2cP0rYHwSCC1w5CtA7TO3Wi/cc8Uwlb1w 4128p9gA3xRZa0o05BYksoAhObk3lIcc+Sk/4YcqhFe23Dwq+kCtMt+cgK9WxkDsnuLT Ds1Wq8wna1dBapKCe80OPP8rkG3c+eY5yT6fLqY4t3vlrC19c5UkAUUfDDxOcG39UQb6 clvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=paXVMvY+; 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 s67-20020a0dd046000000b002ef38638be6si13553457ywd.479.2022.04.26.10.02.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Apr 2022 10:02:23 -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=paXVMvY+; 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]:50642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njOZz-0000KP-2i for patch@linaro.org; Tue, 26 Apr 2022 13:02:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njO63-0003BH-AI for qemu-devel@nongnu.org; Tue, 26 Apr 2022 12:31:39 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:41763) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njO5z-0003yZ-5g for qemu-devel@nongnu.org; Tue, 26 Apr 2022 12:31:26 -0400 Received: by mail-pf1-x432.google.com with SMTP id p8so18434665pfh.8 for ; Tue, 26 Apr 2022 09:31:21 -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 :mime-version:content-transfer-encoding; bh=ACpxH01JxErVg11OMtWk96IeWBCSCK3eCBc3FiBtZOg=; b=paXVMvY+rYx8L28mBZA3hCozX+y65yxDNrgzppj/PxLZsGHreW9hQG1aDGXryyvPTJ dq3NgPFVmscDmcME4WRifbaSFlFoIZtMXypp2NWokWlj/HnrYld3BX69FREo5pVG8etK X1jZpArmOTh3189OszJWdnnxarQB8QV8/tFhDUC97+cSj5vwC/H2i7Qcbhr9CFdtdkub 20MQyxQ6+pJqwaY3/0NfvAdO1czrglFUKi0bJjWQ+5QAW0KOhYHTXBB2Xqai0KZ8NH+U Iw2PZl6CC+ueXSEaOByLmfNOc8TK8jkN8d/Lyfy05BPunUV6zltTPAKRnyigNXPRFlTU 4D2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ACpxH01JxErVg11OMtWk96IeWBCSCK3eCBc3FiBtZOg=; b=mvdcmuWismHyOJBRfUu6/oW6kDMeqrp/mVe+oKIrzpXXNb8O3eX7M11Vh3NT63mB19 gv2ZWAtJMoeo83z7t1jiAYz+GmScY55B/H7NyA8ExSpUXZDIKI832pehb6Ec+jRs4tQS WwwNE5NUdxoHwRWuIDM49A9CcVp2MzJPnq+8JFOnnNc1Ubr7q20FnCy3pDVQT9rR15Wc Gz2bH82eFXbCHidgeBRjF9IghW6sf/+2XvRbEVaaEidcgP2nKu7fAC5AoqSJ+2fAAiGh mv/lb2shl5GZN6a0mHTTg1drmBH4qaBGln0dzGsGtlv2dk+NhbDjo5ZvNYSzcD9ALVAr hzcg== X-Gm-Message-State: AOAM5312PrOSNHg3TQJCylghmiw37y8gUSUfys0qHqEkMr501ztOiVuC cRKKANC5eVutgkA/A+/ch8aOOHs/MLXMZg== X-Received: by 2002:aa7:8215:0:b0:4f7:125a:c88c with SMTP id k21-20020aa78215000000b004f7125ac88cmr25623006pfi.70.1650990680328; Tue, 26 Apr 2022 09:31:20 -0700 (PDT) Received: from stoup.. (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id y131-20020a626489000000b00505a8f36965sm15655813pfb.184.2022.04.26.09.31.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 09:31:19 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 38/47] target/arm: Use tcg_constant in FCPY, CPY Date: Tue, 26 Apr 2022 09:30:34 -0700 Message-Id: <20220426163043.100432-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220426163043.100432-1-richard.henderson@linaro.org> References: <20220426163043.100432-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-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: , Cc: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/translate-sve.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 9321457f31..ef57d3a2b4 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -2259,9 +2259,7 @@ static bool trans_FCPY(DisasContext *s, arg_FCPY *a) if (sve_access_check(s)) { /* Decode the VFP immediate. */ uint64_t imm = vfp_expand_imm(a->esz, a->imm); - TCGv_i64 t_imm = tcg_const_i64(imm); - do_cpy_m(s, a->esz, a->rd, a->rn, a->pg, t_imm); - tcg_temp_free_i64(t_imm); + do_cpy_m(s, a->esz, a->rd, a->rn, a->pg, tcg_constant_i64(imm)); } return true; } @@ -2272,9 +2270,7 @@ static bool trans_CPY_m_i(DisasContext *s, arg_rpri_esz *a) return false; } if (sve_access_check(s)) { - TCGv_i64 t_imm = tcg_const_i64(a->imm); - do_cpy_m(s, a->esz, a->rd, a->rn, a->pg, t_imm); - tcg_temp_free_i64(t_imm); + do_cpy_m(s, a->esz, a->rd, a->rn, a->pg, tcg_constant_i64(a->imm)); } return true; } @@ -2291,11 +2287,10 @@ static bool trans_CPY_z_i(DisasContext *s, arg_CPY_z_i *a) } if (sve_access_check(s)) { unsigned vsz = vec_full_reg_size(s); - TCGv_i64 t_imm = tcg_const_i64(a->imm); tcg_gen_gvec_2i_ool(vec_full_reg_offset(s, a->rd), pred_full_reg_offset(s, a->pg), - t_imm, vsz, vsz, 0, fns[a->esz]); - tcg_temp_free_i64(t_imm); + tcg_constant_i64(a->imm), + vsz, vsz, 0, fns[a->esz]); } return true; }