From patchwork Thu Mar 9 20:05:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 661111 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp501788wrb; Thu, 9 Mar 2023 12:19:54 -0800 (PST) X-Google-Smtp-Source: AK7set9mLH0oXaqW4NR+SZ2OppOjFi2Vl50AzQwPpT2bSsVHTI6xrUhSdA3rcgcSJYECCkfx0Fpp X-Received: by 2002:adf:eec2:0:b0:2c5:8d06:75c2 with SMTP id a2-20020adfeec2000000b002c58d0675c2mr17562728wrp.35.1678393194112; Thu, 09 Mar 2023 12:19:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678393194; cv=none; d=google.com; s=arc-20160816; b=gmAogvXOWc6n4c5bKP3cO9+2d6fNFIhp7xfw1XBbQ9TxprABaMW4nxfIlUDxAPQoSM obtVGvsOUftiZaVM2fZLawJA2AQwi9RINPDVWAd0cWUQk14bZcbaLclC4wrV0YcUwBWD q0KgKhY8xZQbX8UnTanjV1mvuSek5OHUqYfIux82Gg7uo/kXxD7j+YN6Y6fcjLEL6qjJ BVouU8BYc2qIlWWQsXjq8ioy6JPMcRihBNXKD3RRHXFiT+7TeDTH1ZdxKlPsamDtPkbW ABBw41vpPZabgB3oGGzxe5bvD9mPz6y2LC9qH/EZzHl3SCDr83XN5jMZ+l1RHy5hk2TD abOw== 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=XyxL9T8UjZxQ4CAYfGW8p+3sQmOt2OC3gGYPJjY7kcM=; b=dcXJDqYxfVXp5jnjKmYdVwyLVb56zTbWpnVz6PTncwxkW+1XyPARJUq5XpijOjbuVp r7T89pKb/3Onpu2yHtSQ/s7xz3ob6J+TpWmVxn6cLZTCtJ5OevvJPH707MZqqyHqW9an o6mDRt6saXqcBu3pF5u07ZivLLDuJz97hMOh3gd1OTf53/NEoK7OqjOEc/evAhb3BmSR ypxf93yW7qFdJYagyCMXmLy5q2x71zE9vBJTGkdHXwVbrb6D0I5CLfE5nIiPiEBAIN7L i4vabHl18yhbnEyiqYu/fpQYNuMWliSLOJYJzJIlk86kgpB/XiHSyiIKunMw3jX8rQep kvqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Vnb1ujKH; 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 q9-20020a5d6589000000b002c5532bd6ebsi296991wru.531.2023.03.09.12.19.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Mar 2023 12:19:54 -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=Vnb1ujKH; 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 1paMe8-0001FU-GD; Thu, 09 Mar 2023 15:13:52 -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 1paMdm-0000a6-Uo for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:13:32 -0500 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paMdj-0002Ju-PY for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:13:30 -0500 Received: by mail-pl1-x62d.google.com with SMTP id v11so3211085plz.8 for ; Thu, 09 Mar 2023 12:13:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678392802; 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=XyxL9T8UjZxQ4CAYfGW8p+3sQmOt2OC3gGYPJjY7kcM=; b=Vnb1ujKHwPHDy8aCYrARkJmy99yUlNxEDDJw8mLaAs6KIbxDEdZowhJhh+yA19VXqw +FWf1tr8LICbUt5vADIFB2csycD1EnlFwmU7mSDJZJcixI7ICP9aBsrQIN5CNbMhOWaF XkUOyOVh59Ss+p2XrmhIcVx+AgoKryJrL+9zs+VNLvrwol52ethnqCsv+azgJDCf7okK 9pNlDKllABsn5lKaF2vr11FGObRIVIZUw2x+xOJigfe0j4eMIBf7KyehE/Key4GtuWEx +MEcz6a9QPGCzL5jnDosoGbX3DepukFSt8iPbdcaFg8T5QcJ19djZAHTVAWbtgWd1rv/ VzKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678392802; 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=XyxL9T8UjZxQ4CAYfGW8p+3sQmOt2OC3gGYPJjY7kcM=; b=HEHYZ76z5dMwXAv30PXTtg9VwjqEeQHjdY72cCcK81iYTWN76uu5EYQc8WPpmgg1k/ QsMlFT4IFCRyBVsSCu9G7slcE0vHidbcD0vKXxgO4hm1sPpIp0om9cuu3qcSuepJugjv BfgtFkF2a1QfCAFEqPrwCIyPK0xqEuRqn1ROaJzSJeZAsGM7NAq8p5jneV5y4HUM6wQD 3HxHy0FXxU7WvDjoXHAd5TLI9AgUSFY3drKl7z/VIMNYdX0zxF0tl0nlIYjiYEXLqXQo 5mqjbw6MV0VSRwyWqUuz246Sq2a1WltwSV2F2wna6io3xpI0NL3+5TaGc3fuw1sz9ran pHGQ== X-Gm-Message-State: AO0yUKUcEq3eXV93IQohSic0OqIZyceOw4BIUTDbsaQWBTJZZJT5MptU +uVGOIPO8L4UL7pKtpqytDa2chi090ZZxc0/hVQ= X-Received: by 2002:a05:6a20:66a6:b0:cb:95fb:84d with SMTP id o38-20020a056a2066a600b000cb95fb084dmr20568948pzh.5.1678392801782; Thu, 09 Mar 2023 12:13:21 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:bf7f:79a0:a976:bdaf]) by smtp.gmail.com with ESMTPSA id v15-20020a62a50f000000b005b02ddd852dsm11867744pfm.142.2023.03.09.12.13.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 12:13:21 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL v2 91/91] tcg: Drop tcg_const_* Date: Thu, 9 Mar 2023 12:05:50 -0800 Message-Id: <20230309200550.3878088-92-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230309200550.3878088-1-richard.henderson@linaro.org> References: <20230309200550.3878088-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.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 These functions are no longer used. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/tcg/tcg-op.h | 4 ---- include/tcg/tcg.h | 6 ------ tcg/tcg.c | 16 ---------------- 3 files changed, 26 deletions(-) diff --git a/include/tcg/tcg-op.h b/include/tcg/tcg-op.h index 70856147c5..dff17c7072 100644 --- a/include/tcg/tcg-op.h +++ b/include/tcg/tcg-op.h @@ -1089,9 +1089,7 @@ void tcg_gen_stl_vec(TCGv_vec r, TCGv_ptr base, TCGArg offset, TCGType t); #define tcg_gen_extract_tl tcg_gen_extract_i64 #define tcg_gen_sextract_tl tcg_gen_sextract_i64 #define tcg_gen_extract2_tl tcg_gen_extract2_i64 -#define tcg_const_tl tcg_const_i64 #define tcg_constant_tl tcg_constant_i64 -#define tcg_const_local_tl tcg_const_local_i64 #define tcg_gen_movcond_tl tcg_gen_movcond_i64 #define tcg_gen_add2_tl tcg_gen_add2_i64 #define tcg_gen_sub2_tl tcg_gen_sub2_i64 @@ -1205,9 +1203,7 @@ void tcg_gen_stl_vec(TCGv_vec r, TCGv_ptr base, TCGArg offset, TCGType t); #define tcg_gen_extract_tl tcg_gen_extract_i32 #define tcg_gen_sextract_tl tcg_gen_sextract_i32 #define tcg_gen_extract2_tl tcg_gen_extract2_i32 -#define tcg_const_tl tcg_const_i32 #define tcg_constant_tl tcg_constant_i32 -#define tcg_const_local_tl tcg_const_local_i32 #define tcg_gen_movcond_tl tcg_gen_movcond_i32 #define tcg_gen_add2_tl tcg_gen_add2_i32 #define tcg_gen_sub2_tl tcg_gen_sub2_i32 diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index d620012c48..5cfaa53938 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -996,10 +996,6 @@ void tcg_remove_ops_after(TCGOp *op); void tcg_optimize(TCGContext *s); -/* Allocate a new temporary and initialize it with a constant. */ -TCGv_i32 tcg_const_i32(int32_t val); -TCGv_i64 tcg_const_i64(int64_t val); - /* * Locate or create a read-only temporary that is a constant. * This kind of temporary need not be freed, but for convenience @@ -1021,10 +1017,8 @@ TCGv_vec tcg_constant_vec(TCGType type, unsigned vece, int64_t val); TCGv_vec tcg_constant_vec_matching(TCGv_vec match, unsigned vece, int64_t val); #if UINTPTR_MAX == UINT32_MAX -# define tcg_const_ptr(x) ((TCGv_ptr)tcg_const_i32((intptr_t)(x))) # define tcg_constant_ptr(x) ((TCGv_ptr)tcg_constant_i32((intptr_t)(x))) #else -# define tcg_const_ptr(x) ((TCGv_ptr)tcg_const_i64((intptr_t)(x))) # define tcg_constant_ptr(x) ((TCGv_ptr)tcg_constant_i64((intptr_t)(x))) #endif diff --git a/tcg/tcg.c b/tcg/tcg.c index d2993826c8..bb52bc060b 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -1445,22 +1445,6 @@ TCGv_vec tcg_constant_vec_matching(TCGv_vec match, unsigned vece, int64_t val) return tcg_constant_vec(t->base_type, vece, val); } -TCGv_i32 tcg_const_i32(int32_t val) -{ - TCGv_i32 t0; - t0 = tcg_temp_new_i32(); - tcg_gen_movi_i32(t0, val); - return t0; -} - -TCGv_i64 tcg_const_i64(int64_t val) -{ - TCGv_i64 t0; - t0 = tcg_temp_new_i64(); - tcg_gen_movi_i64(t0, val); - return t0; -} - /* Return true if OP may appear in the opcode stream. Test the runtime variable that controls each opcode. */ bool tcg_op_supported(TCGOpcode op)