From patchwork Thu Feb 23 18:04:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 655994 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp470375wrb; Thu, 23 Feb 2023 10:05:26 -0800 (PST) X-Google-Smtp-Source: AK7set9rhRrDYcZxReDAZWHHeLU3mni9HIrKiUmXQAberA3elJtyqvNCulqYlsBMkK2f0V2Hkhi9 X-Received: by 2002:a05:622a:48f:b0:3b9:e0b2:9a47 with SMTP id p15-20020a05622a048f00b003b9e0b29a47mr22394117qtx.57.1677175526737; Thu, 23 Feb 2023 10:05:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677175526; cv=none; d=google.com; s=arc-20160816; b=UJTy5ADcNoEhEQ3/oxV+SDwfFZ+OXw6R3TWIKqhKroXH0gBQQ0XpLs0kS7SsoD+MKL QLpDAk/enpzQeU/dXWKSnr1SBk64gD8n2g4aSGxxDWGZ8XAO88bMtzBjI8cCS7U2xmC1 BNnCJMK4Tj9OmXInFrW89KnBFUEqLrUcDgsrfJ+PBsTSP8SJKwxZ9oXZ3GsEiOdcgvrv dqFmoqgYV9XqMCebHIjbPdHl8UE3bqkW3hoLqcm7sAG8J2QvrGIZoFvFAYmvOpghzMK9 XgMfPavJpIhXM6MGfh/tGHdCgSRZH6tJHOcqGZqapwGfxp4L5V2vuOWdLvEbeQ+QxQAF zadg== 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=HNIWPV45KGkKoxXS4WlxdJUG3g4w25TFk+WrlWHrdxY=; b=B6MqJ56s6zXP41nyzyG53d1+rEpw1Y5xe4iWHpJ4usQzbiLw/D+pqsYBegWRB5Vgzv PQ8s77Aqj9T6CR/9gvfUXvf/rLTPH9o0hRdhRxd7Nb7klMg1mLhgvdG4wJS0NDIs9+NT XT3sr1YkFIRmqsWV9MzXzKZnlw/taqacBzIH55obXU5jxJB6G+co2mQq7fG1NYikzUXG hP8NzBSnhX7Gq2hHFI7wDQPvhfbWtlSF8qJiwQSO9CzxyxVO65kPFt12xannhz9L/Ake Rv/thEVgeAA2/4vabxmV4kTTPLQOpvHR5/ti5dBmCJ+qHG8xCyYTeMLgZW6GetLRqCAl RO+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LBC3Lk6B; 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 o3-20020ac85a43000000b003b633d1adcasi18594104qta.587.2023.02.23.10.05.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2023 10:05:26 -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=LBC3Lk6B; 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 1pVFxK-0004Y9-3B; Thu, 23 Feb 2023 13:04:34 -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 1pVFxG-0004Ro-BR for qemu-devel@nongnu.org; Thu, 23 Feb 2023 13:04:32 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVFxE-0003jn-Ub for qemu-devel@nongnu.org; Thu, 23 Feb 2023 13:04:30 -0500 Received: by mail-wm1-x334.google.com with SMTP id fm20-20020a05600c0c1400b003ead37e6588so83068wmb.5 for ; Thu, 23 Feb 2023 10:04:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=HNIWPV45KGkKoxXS4WlxdJUG3g4w25TFk+WrlWHrdxY=; b=LBC3Lk6BokndQaYPlDuKPQ1M6VdT/7r6APA8KIkebpMpM0lIjKUMvWDDgYjraK1m0r qjQgN7C4+y29NjnajXu/eeqqHyPhdZitregKhGZwz872vEl2gWnrt2mMYiqun/Ka2Yhw BZVuyGXkM7w7zoIfotNgqNOx6YedZJaIzYyOrIXbghfwWjt4nUjnelWq0HFmpjDaKZtD XTUJHVd7vvTutoiythBl6UWPJmXrJZ1JFAy86gK8FT11Mi03MG75PAccBcz9G06TBqdL tGI7Cf4j/gMkhtbdKRsHMvsugFUdo7kHbST9Bk26xPsoYprKctuj+Tb7CpZSt1r4WaLS f3DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=HNIWPV45KGkKoxXS4WlxdJUG3g4w25TFk+WrlWHrdxY=; b=ZUMjSKt0QtMiRTku0vqQ4WkH8WqKKpcrzeei/OB3czbfzD9p9l4oUmH8BCTAbM5s/G y0VHr6A8kqV4Ah3SKy5hm1Nrdht934lNnv0B4eNZIfmL+7GlNfyO8FAnoeYsSKQQXf2N 4STBBmfpIG61YXBtcbmPdqTWZAE++mNXIWz5bczVaXExTM+FEcAwGIbSWJITIlFEJhWx KCy6BGD8mDM1450clAu8ccZHEaQm53NdqA1iQpfHyRPKH9Emv87cqu8p3dSIhH7sF7kG nkZkHIgu36Y84qb4cmMnanqZlLtAHPvYQgEgLz1/9R+7DwwoiXcqQKpfLHQYV33TMsIR +/fQ== X-Gm-Message-State: AO0yUKVadWijN6cmy+fNeKCUYu4LS4Qoca6BrnNcmaJaPNXoMY3N4r8w oA4v9sctVKfJktYg86V0HpSIhFU3F9Je+CQc X-Received: by 2002:a05:600c:4a9b:b0:3ea:eaa9:8dd8 with SMTP id b27-20020a05600c4a9b00b003eaeaa98dd8mr450596wmp.20.1677175467400; Thu, 23 Feb 2023 10:04:27 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id be6-20020a05600c1e8600b003e89e3284fasm32411wmb.36.2023.02.23.10.04.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Feb 2023 10:04:26 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Artyom Tarasenko , Ilya Leoshkevich , Anton Johansson , Richard Henderson , qemu-s390x@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 3/3] target/sparc64: Replace TCGv by TCGv_i64 in gen_op_multiply() Date: Thu, 23 Feb 2023 19:04:05 +0100 Message-Id: <20230223180405.31836-4-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230223180405.31836-1-philmd@linaro.org> References: <20230223180405.31836-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.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=unavailable 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 Although TCGv is defined as TCGv_i64 on sparc64, make it clear tcg_temp_new_i64() returns a TCGv_i64. Free calling tcg_temp_free_i64(). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/sparc/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 150aeecd14..3cac26680f 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -634,8 +634,8 @@ static inline void gen_op_multiply(TCGv dst, TCGv src1, TCGv src2, int sign_ext) tcg_gen_mulu2_tl(dst, cpu_y, src1, src2); } #else - TCGv t0 = tcg_temp_new_i64(); - TCGv t1 = tcg_temp_new_i64(); + TCGv_i64 t0 = tcg_temp_new_i64(); + TCGv_i64 t1 = tcg_temp_new_i64(); if (sign_ext) { tcg_gen_ext32s_i64(t0, src1); @@ -646,8 +646,8 @@ static inline void gen_op_multiply(TCGv dst, TCGv src1, TCGv src2, int sign_ext) } tcg_gen_mul_i64(dst, t0, t1); - tcg_temp_free(t0); - tcg_temp_free(t1); + tcg_temp_free_i64(t0); + tcg_temp_free_i64(t1); tcg_gen_shri_i64(cpu_y, dst, 32); #endif