From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a05:6512:230d:0:0:0:0 with SMTP id o13csp376920lfu; Tue, 26 Apr 2022 10:04:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl9EKb/uruHrS1KlxxoBmylqDATHbRk7QEmEqKqXWVLAOJgzZLZE708tMs+gZPw2JriD6n X-Received: by 2002:a25:1585:0:b0:63d:de88:5aa6 with SMTP id 127-20020a251585000000b0063dde885aa6mr22077876ybv.201.1650992640590; Tue, 26 Apr 2022 10:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650992640; cv=none; d=google.com; s=arc-20160816; b=qkjQqCOAPlZdAwr4QyiMgXK44jG2u0T2BKGx2xrDP9h6bJtFlI4Huw4+eLVzYZSaJx E0LJwJ0rbAy/iS8PL1Ae3HWLyNKerrjNs9uSVm5M3Ljq+4nzfpJreyOmvLe3oNwvw225 J0UplUbDFbeyu6Ft8gAzSROSs8Jfoct+8DghUFPK9HH3Nlao0fU1Eu3ySblCB3rvLiAo jUkjbNEWol0FwEgw6FMvO2ghGSL/GhWh/nnMYSxU67+b4qAwUeehmzs2C8sZHsLnumFm jzBs+vzijfpEO3zYDO8j8ADnwbQHWR+Mh+l6jHIwU4nZ4TEt7U6DCTE3o8LlnF5BxQBT RaPQ== 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=xpgOAMY6yJE94kKOgo2N7OR1UFD6TR7BUSB7+hLMRTs=; b=AuqLcylAl1y2VT9O4AJ00QQFpcG7H87APAsw/m+43qlUtsetcXQQf1PVuHMjEpWo3n I7h43b5Jf76bPFYBsrM2OhVcM9VDyvI9g9eXR5D6e3BH0ghSWth6s5f3rfuvL22mKVhH jRAZfGBftjNzapIJvgQJYQUs+MR3QkrH6bQsM45IUyydnD6fB4Inyyb130WZBrBjHbQf 9lPrYwd+6pdq9/Q2vBH/TB/4of/gH4vm3cGdEuxhWLzJs3AXh5xSjaJhMoOCSrZTtUN0 QKmAcNRFY3G/8Bm2+pRcdfZcCnzxhZXvhxj19SKynrF6Q2CtLfr0xQCZ9Vo21L2Wdc2D baNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=fSdcABSn; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=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 l2-20020a81d542000000b002eb66c113efsi13926915ywj.454.2022.04.26.10.04.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Apr 2022 10:04:00 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=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=fSdcABSn; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:55702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njObX-0003pA-Tb for alex.bennee@linaro.org; Tue, 26 Apr 2022 13:04:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njO90-0002Oo-3q for qemu-devel@nongnu.org; Tue, 26 Apr 2022 12:34:30 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:41742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njO8y-0004Mq-Dv for qemu-devel@nongnu.org; Tue, 26 Apr 2022 12:34:29 -0400 Received: by mail-pl1-x630.google.com with SMTP id s14so30701123plk.8 for ; Tue, 26 Apr 2022 09:34:27 -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=xpgOAMY6yJE94kKOgo2N7OR1UFD6TR7BUSB7+hLMRTs=; b=fSdcABSnvQRXssmPFcWRNnLXTCpQUJuQnBIouHCm1LcPB/mN5DZEBj5hAbw/JFoBAT L0rrMi4tIuwVAHp0vyTMkhb3qjtim2seIJTc/ka+Ujyubn4b90imJEMUEFLlmEcH7KJI rjgE/7qx+d7aKlavg6O6aZDfw4trQqxgpYJ8+OWzHSQCKZ56qKA/mEaG+gHPjOC8K0yV HVU2Wb+ZgA0XbcShNVvjmrzQc5Uk4AWmFSeUjoz3Ycn2ZQ3z1fD4o6Kbs+2cFb1opgMp mtf/foD+mWQAGb7/5uOSXq7kZE8DV6fwWXl2zxUfhedpVm/lb5Wh/vCSK2xdTQWuRV/i f0eQ== 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=xpgOAMY6yJE94kKOgo2N7OR1UFD6TR7BUSB7+hLMRTs=; b=rR1wghVtTQR4qRhIYjqc1sn0+fmklaT6TyGbyWkSUYlkkDd+sJauF6qj9NnD+Ipbd8 MhtM3Kh5xHGGzAPpFKvq4HEzkreI4alEwNzLvxjyzCfaO3JPetYF4OM56BqAYh0DG7r0 etM2YsomWEjceiFtDAat4ixTaJ1DJ4Y7olGzPl3AnFfFLiuIp/YSgR4q7z7Q2pZO92jb oWD3mQi7x58nPOFWuEjvMZ062cHCB9hRJCkb2ZWTAMafafSTBlqgGpEtoBDN9xKKUnMb CrYUFN5GRpYn8Fn1bCfulwWW4rPuYTsKtx2yTtC5h/utKj8/KjIhGTpoRv27QE7DdNxg 9xHA== X-Gm-Message-State: AOAM531X+XXvfnzEnOaHU78x4bWFzv+5GNjIcjehVLKkM9rv2CtkKT8B G3mU3JT2wAIL+SMintmulRfB9nmX2OJBqQ== X-Received: by 2002:a17:90a:c388:b0:1d9:6336:2d7a with SMTP id h8-20020a17090ac38800b001d963362d7amr14111525pjt.244.1650990866237; Tue, 26 Apr 2022 09:34:26 -0700 (PDT) Received: from stoup.. (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id a13-20020a17090acb8d00b001d953eb2412sm1132834pju.19.2022.04.26.09.34.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 09:34:25 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 44/47] target/arm: Use tcg_constant in do_zzi_{sat, ool}, do_fp_imm Date: Tue, 26 Apr 2022 09:30:40 -0700 Message-Id: <20220426163043.100432-45-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 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x630.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+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: ZfB8embPDPmL Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 92339a19e3..a684d489d2 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -3853,9 +3853,8 @@ static bool do_zzi_sat(DisasContext *s, arg_rri_esz *a, bool u, bool d) return false; } if (sve_access_check(s)) { - TCGv_i64 val = tcg_const_i64(a->imm); - do_sat_addsub_vec(s, a->esz, a->rd, a->rn, val, u, d); - tcg_temp_free_i64(val); + do_sat_addsub_vec(s, a->esz, a->rd, a->rn, + tcg_constant_i64(a->imm), u, d); } return true; } @@ -3884,12 +3883,9 @@ static bool do_zzi_ool(DisasContext *s, arg_rri_esz *a, gen_helper_gvec_2i *fn) { if (sve_access_check(s)) { unsigned vsz = vec_full_reg_size(s); - TCGv_i64 c = tcg_const_i64(a->imm); - tcg_gen_gvec_2i_ool(vec_full_reg_offset(s, a->rd), vec_full_reg_offset(s, a->rn), - c, vsz, vsz, 0, fn); - tcg_temp_free_i64(c); + tcg_constant_i64(a->imm), vsz, vsz, 0, fn); } return true; } @@ -4520,9 +4516,8 @@ static void do_fp_scalar(DisasContext *s, int zd, int zn, int pg, bool is_fp16, static void do_fp_imm(DisasContext *s, arg_rpri_esz *a, uint64_t imm, gen_helper_sve_fp2scalar *fn) { - TCGv_i64 temp = tcg_const_i64(imm); - do_fp_scalar(s, a->rd, a->rn, a->pg, a->esz == MO_16, temp, fn); - tcg_temp_free_i64(temp); + do_fp_scalar(s, a->rd, a->rn, a->pg, a->esz == MO_16, + tcg_constant_i64(imm), fn); } #define DO_FP_IMM(NAME, name, const0, const1) \ -- 2.34.1