From patchwork Sat Feb 25 08:59:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 656442 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1352144wrb; Sat, 25 Feb 2023 01:02:50 -0800 (PST) X-Google-Smtp-Source: AK7set8vyHIPHM2EXBNzFg0IU01vrsscTXdz5hbRJWBHgln2DMmwaALNS296UcJgtmFs9Vzwb5i3 X-Received: by 2002:ac8:4e49:0:b0:3bf:a8cf:3096 with SMTP id e9-20020ac84e49000000b003bfa8cf3096mr23771984qtw.33.1677315770278; Sat, 25 Feb 2023 01:02:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677315770; cv=none; d=google.com; s=arc-20160816; b=EZ40URgAYcnXg8QKodjLIzahhFMHsDCHp/l1ZdIAD2FT3EkGdRH3uDBoagEFNIB5Vb Mi/QHYGzuWSbMk8VfpjhHaHIhjzUK99vjHFRAOjoe3kx/EptTb/gIGT8mQ12nJtEMIDT 6AMPcuBNxC2fno8HiD2FXKpqUidi4Pd+TsCvvKr/JzW/C/wr9Ihpe0WzxCeUSEHVu8DD DV1vJnNTXLcI5TufC5b9pORmov9CslzNuwecE/75XhlziPE/2qJ17YfsLev4kEry4uC9 5xOpQ3Hgofp2DlWzv9R4hM/Gm09Pn/ajivoS0Rl6oMuBbtaHWHHWE1MyztLRj/dRvxR8 Mo4w== 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=ZK6oEbqt3dxsfuMoTh01mcvLTHjmxZXgAn3bafb5zV4=; b=DuPW/hEeCFN32COSPKHZL08aVZZUXnNW6p88dnU7p97MGQa03IZ/rYKeFDklk9pQHU GoHwkpg26KQnJGbqGUQdik+GFjnz3+plFLWhf7G8f+mmbhKxBkxTbuNqCdie+U+kY8IZ VV6acShwHrbLGeAG4ipTGi/1z4wdWnW+uCeJklWJLaGQ1oSgkJhsLTJWZZSCtYup9sVI 8PN754SROTF8/GeavBIEyiBW06Bdc6BhhfJDxnxCdE9nmVHuge15KxHVFqcFZ9aWYL48 r/9Vxt96d5yoALdLzTyaSzU8A11v2GdNm8hnB9DyUePvUHfri9hvkWq0Z6gm+oJBMFMa eKCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nNZrIHOl; 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 z16-20020a05622a061000b003b9bcfd81d3si1703432qta.530.2023.02.25.01.02.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Feb 2023 01:02:50 -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=nNZrIHOl; 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 1pVqPo-0000gZ-EC; Sat, 25 Feb 2023 04:00:24 -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 1pVqPd-0000RT-IX for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:18 -0500 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVqPb-00053x-U0 for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:13 -0500 Received: by mail-pl1-x629.google.com with SMTP id i3so1860021plg.6 for ; Sat, 25 Feb 2023 01:00:11 -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=ZK6oEbqt3dxsfuMoTh01mcvLTHjmxZXgAn3bafb5zV4=; b=nNZrIHOlLuf4uDxOaAf/xets+ez7AySlDQzQpFYD2VzoMJacHyOTmyTl1ldFCbkFyx /pgYzQEHKMm03NUseec6HWkkgt43FlmyGUDGPpyvkuLDVklBEsaZSaMtHANIL9p6PxLo 1lIr/N2FLr+/r8rkGe1kfrLagWoIA8eRckCSdvIlBfvSEbUoRj6CUx9uqzcve1wBhORh o3VjRYf7NtFiaHpwAv0bzSps/BuJNfnJVkkdXtjWQWY63r1muFavM7rxDdoTM+GU1B0Q Xk7PW2MlbJs8QPMofKZcX2leRLfiLcTOrr0YISmP3CwUZatIN0vYnykg7MdN9ZP+Lytr 056w== 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=ZK6oEbqt3dxsfuMoTh01mcvLTHjmxZXgAn3bafb5zV4=; b=ZcYzo7PXsTwIx9Imqsdf1jZG+ySB6GOXMOa+QAx8ZeQIlcEs5bq4TvOpQML4t60BH9 8b38X0W1Hy499g3FGB7fpchz2FP1vUXB4CJYmsg9aeSO/1hq0tQ1l0vZnXcTsbbkXJNY 9JG7FPzpWWWho5DOp/evbTmbbRcpIlTiltYnvma9wcF7MsHvjqJZjMz72FDXnsg6OvfK KISPdRJCXkwv4dujwej2jYckA2Y+UsjXXTU16tlgW/CXNBkw3aO6WRVIFEmZYfMuBt9w VH9JH32nVWqmWtWCBjMVjJEFjfp08jb+teSI2IoyZlcaONIo2Oo188Ycmg6J/o8Pr3Rz Ud0g== X-Gm-Message-State: AO0yUKVjCWgoYB9N3tcovixPavteiOvz1L+d/Tm8P4RocxJ2m5c9BBNs 5Cc6dDB42FNNIDr3fwJZeoVgLXSuaZDXqZSE6JE= X-Received: by 2002:a05:6a20:6a98:b0:cc:9643:1f92 with SMTP id bi24-20020a056a206a9800b000cc96431f92mr2725157pzb.29.1677315610107; Sat, 25 Feb 2023 01:00:10 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id s17-20020a639251000000b00502ecb91940sm715546pgn.55.2023.02.25.01.00.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 01:00:09 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org Subject: [PATCH v3 14/30] tcg: Use tcg_constant_ptr in do_dup Date: Fri, 24 Feb 2023 22:59:29 -1000 Message-Id: <20230225085945.1798188-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230225085945.1798188-1-richard.henderson@linaro.org> References: <20230225085945.1798188-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.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 Signed-off-by: Richard Henderson Reviewed-by: Daniel Henrique Barboza Reviewed-by: Philippe Mathieu-Daudé --- tcg/tcg-op-gvec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tcg/tcg-op-gvec.c b/tcg/tcg-op-gvec.c index a10d406bba..877b0b659b 100644 --- a/tcg/tcg-op-gvec.c +++ b/tcg/tcg-op-gvec.c @@ -630,7 +630,7 @@ static void do_dup(unsigned vece, uint32_t dofs, uint32_t oprsz, * stores through to memset. */ if (oprsz == maxsz && vece == MO_8) { - TCGv_ptr t_size = tcg_const_ptr(oprsz); + TCGv_ptr t_size = tcg_constant_ptr(oprsz); TCGv_i32 t_val; if (in_32) { @@ -646,7 +646,6 @@ static void do_dup(unsigned vece, uint32_t dofs, uint32_t oprsz, if (in_64) { tcg_temp_free_i32(t_val); } - tcg_temp_free_ptr(t_size); tcg_temp_free_ptr(t_ptr); return; }