From patchwork Mon Feb 27 05:42:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 656907 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2229576wrb; Mon, 27 Feb 2023 00:17:49 -0800 (PST) X-Google-Smtp-Source: AK7set/L8FA7IOIPdBORuDkMBeGSQgE1pKpqm49bJob5Xtl7Bsn5nReZwacC+IItGAe5GMImo08/ X-Received: by 2002:a05:622a:1a1c:b0:3b6:3a58:912d with SMTP id f28-20020a05622a1a1c00b003b63a58912dmr40837158qtb.0.1677485869409; Mon, 27 Feb 2023 00:17:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677485869; cv=none; d=google.com; s=arc-20160816; b=qevPUMfnwCIoI5pfJ51O9O91l0HwZh4zFo9CZP6309aO9gprtUFoP+wbHAWNFTUPpr Q9qtlLblFTRxTeX4IoXtHKmG/Bw19ACdm4TArFBQCuWe98ZsSdeoCleqmvfkTqfzhBmz 3V4NdRw9ZDfEeGuYZ4/z8OqcKvHm2oZgPYMBE8d0ULvUmAG1Hti6imLgYJ+RbdBUQftH jg6VPTePIFzZFjKa1xh0uoxBzerP+rYXa7lG5bo0TfpqpnduhJWLwq4nkB/Ih7khaigP 7PvbmuA3X32RGxIW613g/ujaxIgmzwQTE0KtqEeCUMmbXZqohEjbmKTOX8KV4IZcO32B ILNQ== 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=sYsgaqBrBGiI3+Jh2WZEiCq4q19WvUz6hEnSof98BJo=; b=DuOfiiPhyLEN23BtCuNqj/N2cnGNlBOQ9ALfN8DKGBECcRl6LxkiE2r1fhbjTaJua1 llMe4M+JXwFaN7ngmb+ocJbGDReUmMGm68u8BczCfbtWl4Pdh7CRQRbLVFBJna/mQ4P2 /o8lvGWIhq/2+JztO06SKzfsyE/r00t7D8D5WfOHFdbAW7Tk57BEu1BedMuYa1SAW2n2 MkS3BXhyQY45nwgfXImerqg8C5fFNJIZ8euxxma2jkQZca9Kyi0uNB/IRrIM+qLfeVbS xy5O2eAjtB5yemwzRis9AjCPcg8VoEo/MfQy92fRt1ONvV3bQXwSYROwhRQXBABVKuaA p3YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FSrTyzh5; 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 dt29-20020a05620a479d00b006fbdef09390si5275407qkb.96.2023.02.27.00.17.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 00:17:49 -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=FSrTyzh5; 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 1pWWP7-0004Pj-PN; Mon, 27 Feb 2023 00:50:29 -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 1pWWNa-0005IC-Nh for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:48:54 -0500 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWWNX-0007C1-4G for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:48:54 -0500 Received: by mail-pj1-x102f.google.com with SMTP id h17-20020a17090aea9100b0023739b10792so5092038pjz.1 for ; Sun, 26 Feb 2023 21:48:50 -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=sYsgaqBrBGiI3+Jh2WZEiCq4q19WvUz6hEnSof98BJo=; b=FSrTyzh5bK28sB/luozKktwrAKm3kgVnjqPE8wFy6dO/K9ex6XKsTUfZPWliw3b6KG rGo/RYFt5GhajQKl90pAq8mqK9dv+dW8DgtTWt4CgZkbeKEHbV+yN0vhxKwRBhf95vEI EnXKnyKv3SsR+nOkp/kh2qp9cJF2ONolJ5keSYEk/l9k6VKebaRbNLnu+odihfZVH1K+ ob8yC8PkLGj3PM/w+IqJRWY+8+0uKJtlGWe+Fwc51E3dGobJGs03XwRfSfRuuzX5ENjY jX6DY0JyRXToAmgLWalysPHeX509mkNLmiTAU97bbEke2W1lkulA8zfbvRqywzx9FDjK M10g== 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=sYsgaqBrBGiI3+Jh2WZEiCq4q19WvUz6hEnSof98BJo=; b=6FxEMBIuLpzyGd2bUfcmzs8rOfzEaKCPuLNsOOGrTcOG98UikF3B/1jxArdqpt7jO3 NnKleHM5PDe0N+0tijiQ6oOzegqdo+B4weBLUgt7hsRNL1zqboP1Gk35oCUSFC0udG0/ 9LmAaqBvb8qOSw0nVXmHSwlDX7ALJFEiUR+VyAIy/8IatmU8kjEDnklVCiDFVYyOfN3W 9lwKioe3szFIvcBRSFbHjNnu/UCKffAj1ZeK2B/d4RDZUE3cX6c3v3+rvnrscK1dQ9/9 1dzfoohz1uDOFsQl7uufkMXkiu8W0Uj8tJ+n/8t1zgqwz77RuZhFEUjb40CaHOs6S6an kaUQ== X-Gm-Message-State: AO0yUKW0DGL6//68c12Hnkkn11PuFoZIPwablpAGPrZ2LpQWYJubpH9x mfVdXonOr4hESmwHYQ/bo3wK6CDpD31NIQ+BFl4= X-Received: by 2002:a17:902:e812:b0:19b:da8:1ce6 with SMTP id u18-20020a170902e81200b0019b0da81ce6mr30069146plg.55.1677476929962; Sun, 26 Feb 2023 21:48:49 -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 im16-20020a170902bb1000b0019a983f0119sm3553986plb.307.2023.02.26.21.48.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 21:48:49 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, jcmvbkbc@gmail.com, kbastian@mail.uni-paderborn.de, ysato@users.sourceforge.jp, gaosong@loongson.cn, jiaxun.yang@flygoat.com, tsimpson@quicinc.com, ale@rev.ng, mrolnik@gmail.com, edgar.iglesias@gmail.com Subject: [PATCH 70/70] tcg: Drop tcg_const_* Date: Sun, 26 Feb 2023 19:42:33 -1000 Message-Id: <20230227054233.390271-71-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227054233.390271-1-richard.henderson@linaro.org> References: <20230227054233.390271-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102f.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 These functions are no longer used. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- 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 353d430a63..1d682d0b0a 100644 --- a/include/tcg/tcg-op.h +++ b/include/tcg/tcg-op.h @@ -1094,9 +1094,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 @@ -1210,9 +1208,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 80a2597293..a1b41c1728 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -989,10 +989,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 @@ -1014,10 +1010,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 4d3fb6aee2..3ba0bdaaba 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -1444,22 +1444,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)