From patchwork Thu Feb 23 18:04:03 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: 655993 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp470226wrb; Thu, 23 Feb 2023 10:05:10 -0800 (PST) X-Google-Smtp-Source: AK7set9jCwhr7QY2OU92lSYpnekmPFq/kI3WYPp5cACLUcqhMDLUqTQk/gQWtMyyTwvgQ3I42n+z X-Received: by 2002:ac8:7e95:0:b0:3b9:bc8c:c201 with SMTP id w21-20020ac87e95000000b003b9bc8cc201mr24578337qtj.12.1677175510650; Thu, 23 Feb 2023 10:05:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677175510; cv=none; d=google.com; s=arc-20160816; b=x1YDwex9k2bWzna3k/JQDPcD5IOwXmanvfEZC3uqdFJIwVPPlEZfNVNwaP9UqXXWFa UuXGEjB/ShDBSFB470TWZRhIiGVphtL6UGMVqBBBG4+ihGtorGWl6f9MlbP2MhkHe8Bf hcoRenZnriD75l8h5qi70z7W8mPqUU2yplDYJk2Jo1MgRxkD125MBd7SoPOmBVF5HLzL EkZr417F0Yz+AZYZKVhlPZfSrX7XgLKY+bf5kc+yH7aAXDWG7Fd6XeUXSZSuJi6OPmIF NqMhTdUp7ky04118BqeKhvyOfsxP0Z3ks5OkXeFY63Y4E7rlgDoXPDZcRpTck1GfweV6 AjiA== 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=RqknXLQ56BoJfpg5ngtAVTn9ZgC/zF4CIHZowCwiyrQ=; b=F5JxQRWsJNm4TsYvjW25u9aE0qe1v2Q1Y5+0duPIi3c54P8UgrVZUIMyohOutp5chz 8RadyFUdx475CtnNUpyKIe/YbNLjqj67wNz5ljk4uxJ0BsEWznU7ggtyGOvsuCeARXVM e6fK7HfaL4jYfVtZK9vqvnILLhci7KzTOzt1VChOsjo2QhpBU2Rg7RTvCEF/GRkauUmC /LR9Fe8NLmlJ5SPeVUBNFsYJYoajssiKrCXl+E6kdaZaS0+sGdWnnBk5DyQpZZI2Tfr7 KhSfab3J2zcJ6fCMEDpQ8/iE/nYjuVVya7LcYiltFAKqtvcj4bDeC8BOhBfhckMFBtaF 5new== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hcWHVbpT; 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 c10-20020ac85a8a000000b003b9c185dc39si6911344qtc.92.2023.02.23.10.05.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2023 10:05:10 -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=hcWHVbpT; 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 1pVFx4-0004GC-CC; Thu, 23 Feb 2023 13:04:18 -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 1pVFx3-0004Fv-2d for qemu-devel@nongnu.org; Thu, 23 Feb 2023 13:04:17 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVFx1-0003hv-Hd for qemu-devel@nongnu.org; Thu, 23 Feb 2023 13:04:16 -0500 Received: by mail-wr1-x434.google.com with SMTP id bo30so10814679wrb.0 for ; Thu, 23 Feb 2023 10:04:15 -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=RqknXLQ56BoJfpg5ngtAVTn9ZgC/zF4CIHZowCwiyrQ=; b=hcWHVbpT0hxEL6bJq3Ek8MgQEtwa9dRsI4cqBhrsPtGJ+ni3OwkUU1YuDnVwuI//Qu FB5870Gxnc4+uLiIM1ZFuR7YQJQCoLvuA82Ri5YsVeHQmff2juUJ7wi3t0oK5cbesCnT htH4vOAPgx6g88CARWVFYdISDtnRWp9VNKEOOvHv9Wg3jH4xl6HU+iwUjTRJHL6ktOZO QM31S/NWLLRIAZEShXzVMPVhWdO6szbf06ABfZLmvVEI66mTyOi5MB0VbaYts7g7B3js RmMLyYRoHhOol8NYTkoM96Iun41/psgFp6uU2y+Um5n+IlOouzcdAhynllhbPhkRlvnj PkcA== 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=RqknXLQ56BoJfpg5ngtAVTn9ZgC/zF4CIHZowCwiyrQ=; b=oG1M8yT6LcxIvOiMqhWe4fB31hkpQtS0z/FKjbKvEGlTIrvwcVooF2kMhUXmzhE1wj UcHhpBOeB/1ATl5/zW4dMI9ETL7nitibKZ5OCL1t6pqhrCe9ujk4M3DCudh4uPXY/SRa QRPu4OcYBOVu5OWU66/amCu5SKumxgGDCjEZTMvUZbedGjC3V7cVQVsqRgY04+VfvKfo djUKXPGMYCpWS2DBZAh4I6zRcts5ZsgRYfFa+6a8Bj3hXkfw8R2fnhJI0lRkpt+WcwKA KvH4Ur5Za6PcBOi/vkuDJx23dI9Fz23w9C9+clRLQ/DTFGU0ZspZQRqTEYHnv+Xm3dhG /sDw== X-Gm-Message-State: AO0yUKUFpbWgfX0kJniYDfly2JcpiqCe3V+B0RqgQwuzT3qgUXfndVhc 7PAofi2H9zTqAx3/DvxXnYcYUtgIm1jlSWyS X-Received: by 2002:adf:e8cf:0:b0:2c7:836:2d48 with SMTP id k15-20020adfe8cf000000b002c708362d48mr7194651wrn.27.1677175454069; Thu, 23 Feb 2023 10:04:14 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id a18-20020adffad2000000b002c56013c07fsm10283863wrs.109.2023.02.23.10.04.12 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Feb 2023 10:04:13 -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?= , David Hildenbrand , Thomas Huth Subject: [PATCH v2 1/3] target/s390x: Replace TCGv by TCGv_i64 in op_mov2e() Date: Thu, 23 Feb 2023 19:04:03 +0100 Message-Id: <20230223180405.31836-2-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::434; envelope-from=philmd@linaro.org; helo=mail-wr1-x434.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 Although TCGv is defined as TCGv_i64 on s390x, make it clear tcg_temp_new_i64() returns a TCGv_i64. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Ilya Leoshkevich --- target/s390x/tcg/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index ac5bd98f04..610b5df84f 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -3350,7 +3350,7 @@ static DisasJumpType op_mov2(DisasContext *s, DisasOps *o) static DisasJumpType op_mov2e(DisasContext *s, DisasOps *o) { int b2 = get_field(s, b2); - TCGv ar1 = tcg_temp_new_i64(); + TCGv_i64 ar1 = tcg_temp_new_i64(); o->out = o->in2; o->g_out = o->g_in2; From patchwork Thu Feb 23 18:04:04 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: 655992 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp470054wrb; Thu, 23 Feb 2023 10:04:54 -0800 (PST) X-Google-Smtp-Source: AK7set9dqKCTnSUWRMWkE+zmsvhW9uIof66oJIJNFfs79FeZV/szU40jVOwfbtshbHfiFzb8cqul X-Received: by 2002:a05:622a:1495:b0:3b6:9817:18e4 with SMTP id t21-20020a05622a149500b003b6981718e4mr7607532qtx.49.1677175493856; Thu, 23 Feb 2023 10:04:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677175493; cv=none; d=google.com; s=arc-20160816; b=XlpwUl6PDSmncpyy71hnchx5C3zFktoJ3ARjGqHsqrZq24+KunXQP35BZezSAHHr8P Q7dNBRC8Mjx+R/knbv451WQ4qaSzrSH2f84qXi7+XbaLtIO2SW4FpEUsK4rJOUfYDFOI bs/r38ydqM+mWd3iVpzCt0+5Bbgru9NxvZCxXI1gLXpgzp5JuVkUe6FIPlWsIefHSkQn w1nhIlt7QLxYsGcrcEI3z7Zt8qjUmkHyNGBfAyud3dFsuxtxuZu9Vm27QcfdLzqucuyr eX0cVLHz+bw6J+ZkQxWSI3nbE4v5dLnSsMmX+XIe42CUr01w7cCIcfAPQ9jKyyQTIUZX FGPQ== 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=PLLO+81M+6ty6hlvULqERzdS4cWY4gmEFmkpDmLu/ig=; b=ST0O036k6iwUAdZJIlmV63ZFb+EBMMwfpIze+yihBu+/s5IyNO5L9AU2XSLlFWUFCU KPZ+4tUEDaN31c6IYFIC/OG838oAT87AVeJg2glc8yErzX7aSSShsYjVt46eLSEF0hV8 RA5bWOZG9O4Qah0Ta99AXUsguD/vQ5WFPk/9qJ463FjZepKxyceGtJQEFSqZszI5LAXT h4DdIA7sSz+/LQwAxrOMbrBlQJ8pYr+8ogcHSJg6G5SHoHRVlbu/vfoi7QVK4c+Lg4rS mK/BNG0xKzBDBXJadukF2p7D06cn+bUd1A0Db3eX61ITzMGsHfWcejDL+3Zgf2Re/H/0 LX0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="fFtflJ6/"; 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 t16-20020a05620a451000b007423f8b3b23si2952917qkp.163.2023.02.23.10.04.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2023 10:04:53 -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="fFtflJ6/"; 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 1pVFxB-0004M9-Tj; Thu, 23 Feb 2023 13:04:25 -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 1pVFx9-0004LS-UR for qemu-devel@nongnu.org; Thu, 23 Feb 2023 13:04:23 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVFx8-0003jB-Fz for qemu-devel@nongnu.org; Thu, 23 Feb 2023 13:04:23 -0500 Received: by mail-wr1-x42f.google.com with SMTP id r7so11216437wrz.6 for ; Thu, 23 Feb 2023 10:04:22 -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=PLLO+81M+6ty6hlvULqERzdS4cWY4gmEFmkpDmLu/ig=; b=fFtflJ6/P3wwPKXknD/aqwa2tY/MMqarVtT4Uiy5DOxxX/DSFbhWSNrQ65smCFt2S0 xx6gtQCWL08oA4KHYbylo8rPWJhg36Zx9p0g6aiL6tr1B8NLJYaMRZUxNsn1ctQidKEO g2piG5W8IO2cktHdu75X8krMhX4LwKAIhvFoQUF+f7Btkq8tUgekIgwY0OoeFITPFW0n 2h6b+tEJ4vDdDmOIg3drGHzkeTVyrsKV5gozrQKstfp72fRCJS/yH7eqwQ4sBrM18V68 IxaZ2CZkm2zZTTc5fE3aeFcN8JF2w+A8VcKQFwGNhaEZjYgRQWM1bGhCl2kmVa/pUMeA GAoA== 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=PLLO+81M+6ty6hlvULqERzdS4cWY4gmEFmkpDmLu/ig=; b=KRanS5IRytdjtFMo26UsehJiVVkR/bz7Pb1bMcO9jvybMqI07isJzKqKwSbVPlXEH8 7MC+V7CkfDE31RQTv4l3rCTJPijTgkfyecD98gQoIftVJflYYawkY80ERMMPsEGShB2Q q65/bHTiMSr6rAB5Vd85RLc+C3XvqYJxvzG0W6shpcV9tUrXS6s9+/5ih9qiJQsIITap l8GtFhiddjyJzLkpaIytNtPzsqxr8V2xGSQKW4we7qqPnIJRY2Ppq9O0RaGPrkr/2xdW xmHKXSj4Y0Bb9Xc7p1Vvf7TjOU7iuiigiPNf/kE05aHq1hWgSKlPoecCum38M1MWXUAb hnJQ== X-Gm-Message-State: AO0yUKVHROAJlXHzL/0e/Z4InJtKGdq7+xThTZhawLgINFLQWb/2EEiY j+yruiT8wvKe2YToYDHTjvtLXqib6WJXbfzz X-Received: by 2002:a5d:67c6:0:b0:2c6:45b8:ff15 with SMTP id n6-20020a5d67c6000000b002c645b8ff15mr12520805wrw.35.1677175460923; Thu, 23 Feb 2023 10:04:20 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id a9-20020a5d5709000000b002be099f78c0sm11224248wrv.69.2023.02.23.10.04.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Feb 2023 10:04:20 -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 2/3] target/alpha: Replace TCGv by TCGv_i64 in gen_cpy_mask() Date: Thu, 23 Feb 2023 19:04:04 +0100 Message-Id: <20230223180405.31836-3-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::42f; envelope-from=philmd@linaro.org; helo=mail-wr1-x42f.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 alpha, make it clear tcg_temp_new_i64() returns a TCGv_i64. Free calling tcg_temp_free_i64(). Suggested-by: Ilya Leoshkevich Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Anton Johansson --- target/alpha/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index f9bcdeb717..06894094b7 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -798,7 +798,7 @@ IEEE_INTCVT(cvtqt) static void gen_cpy_mask(TCGv vc, TCGv va, TCGv vb, bool inv_a, uint64_t mask) { TCGv vmask = tcg_constant_i64(mask); - TCGv tmp = tcg_temp_new_i64(); + TCGv_i64 tmp = tcg_temp_new_i64(); if (inv_a) { tcg_gen_andc_i64(tmp, vmask, va); @@ -809,7 +809,7 @@ static void gen_cpy_mask(TCGv vc, TCGv va, TCGv vb, bool inv_a, uint64_t mask) tcg_gen_andc_i64(vc, vb, vmask); tcg_gen_or_i64(vc, vc, tmp); - tcg_temp_free(tmp); + tcg_temp_free_i64(tmp); } static void gen_ieee_arith3(DisasContext *ctx, 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