From patchwork Wed Oct 18 20:46:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 735072 Delivered-To: patch@linaro.org Received: by 2002:adf:f0cd:0:b0:32d:baff:b0ca with SMTP id x13csp1202513wro; Wed, 18 Oct 2023 13:46:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOKKzQu3igFExlvV1ik1+YtlV1Lp14lMb+zN7Z4LiRI0umUhW8dgu32svz0RlUQsbNwA2q X-Received: by 2002:a0c:b34b:0:b0:66d:3e1e:1afa with SMTP id a11-20020a0cb34b000000b0066d3e1e1afamr309221qvf.48.1697661978431; Wed, 18 Oct 2023 13:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697661978; cv=none; d=google.com; s=arc-20160816; b=yhNtK4SIH9d3p2rNsXOTx+sKzrIJD5FBlVBGr10dQ0pnuEvPgeN6EZrlAZ4+8fCIv0 J8Zt177xH6RXvUIipgJLlmYoEqOEqrkLN0s2yL3ffhXJGqKCfQsnNK8L7ehQP+BCJkUc odIG1G+6xvh6MkpWcNMNbD7k1Tqozte/Q0Ec4ke8hSErGGLBqXnn+iynGacdtKkZUsB2 hByf+7T0HSX+Wcz+Uqezm7E7O1iKoHbuhhyEG4ffuR+C9LMOoYz8t/CjavGx1lp4xWG6 lZ4GHIDs/7zg+Iab8UYkjAroq5+IJD51lp2Jt7ipNsq6rReU0hmyEjE1ZWkVJXWHQ2dr OCuQ== 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:message-id:date:subject:to:from:dkim-signature; bh=3nPn/hdeMlfSVuN9wtUKnE70a3UoWgeaeda+RCRXZH4=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=0evN3s1kIcmjOY/NBfLmLXnMtJ/r+E4QZSXHxQZSH3ecYo+JSp/knq1KhA4awrMx54 x9J6//8wLBSLvtM2CJyNxn3cUIu2sXYrC4wd1RYh5lVxNiHOYY4sXqIPgkKaYIL/Ztiu QdDDcN8JB//Fl5u/x63wDvgI03GEp2+uRCYDXwmRK+H5BYFKF8TOsXDvHr7cHa8vkdlY aZEFiHgniZ6Le5hbzZAOcceCkBdApm6nx7TmBVrrPEmrmpGlilaqwXxbmiwuJtMwSBu4 fbNvRGaJX9DhFg6g8R8zSzBZDISlPOd8Ao/5vj2y2xwv21OTsjsdzOFDGwim9pcDiwLR S6gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cjPtNlZD; 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 ly7-20020a0562145c0700b006516628796bsi533218qvb.260.2023.10.18.13.46.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Oct 2023 13:46:18 -0700 (PDT) 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=cjPtNlZD; 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 1qtDQk-0000U8-AX; Wed, 18 Oct 2023 16:46:14 -0400 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 1qtDQi-0000Ti-HY for qemu-devel@nongnu.org; Wed, 18 Oct 2023 16:46:12 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtDQg-0002Wh-OR for qemu-devel@nongnu.org; Wed, 18 Oct 2023 16:46:12 -0400 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6b20a48522fso4857115b3a.1 for ; Wed, 18 Oct 2023 13:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697661968; x=1698266768; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=3nPn/hdeMlfSVuN9wtUKnE70a3UoWgeaeda+RCRXZH4=; b=cjPtNlZDa2hp6KNwNKaOn0bIEhUJ4X3IZ6duXgDsOijqsnRoLBGt8iTxTfve8x4kpN JGQcxoWeTr/Y7Xw0cEAebmHHol1CGxOHMi9IimibPAfh1k5iIYqWdrMriHnNRnAE5Maq 3t+ePi2I0/cgD1xzMQ1B+vjO3K+JGyyehEosgMhzX91IgH8tdJW7WB7hM50Yahv8AdPk wGvUdYgbh0XlmdIjZNiphiaWFV6qMoycgk2MKHJ+4lVk6UHkWRsfkz0ASz3UAB8f3MBD wQrY1eM8TqIV/ZN9XLZGvX+k38ivJEMrvqUGfea/ZLtSzLikuvfFiZkphz+gDaIgWKwe PpPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697661968; x=1698266768; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3nPn/hdeMlfSVuN9wtUKnE70a3UoWgeaeda+RCRXZH4=; b=lZR1r+clCFn4WWksUnCr+UHBfITeAWIT5pm9CdxHs43pnlMNokyTt0tYDrxQNz08i1 rxEl+l/H0idbTdzKEov59cgEmASg2sCHJyOkvvJZW4iD+cW1AXdf07qwugfTsYHUOZxy rYuZ3iBTNOe0b8F3v4jmEH2vWSnHMkKzF/2Z/UZwUaMVDPz/sR/NEbAHqGeZkKVWI2X4 nJwRaLhGTh3CDU/CN+cd+Vx33m+h8mjOdIpOAXPvdFMkn9aojYhnHuDvdVBdapkPiJhW DfhKeot2YvLbS89bbgKxMrqqW8z93HAF5Wv3PsB6mf8CbbzGDzRfY2izHCFN8xhWQJIN kZqw== X-Gm-Message-State: AOJu0Yy2sN+SUgP/aXvTyaC2znkwa47g16m4wsI6Bi5uMMHRCk39uBSf Z7VfcqtMnOulcnsmigQxcLQlXSwt34WdZFq0Qic= X-Received: by 2002:a05:6a20:9152:b0:173:f8c9:a776 with SMTP id x18-20020a056a20915200b00173f8c9a776mr292605pzc.26.1697661968265; Wed, 18 Oct 2023 13:46:08 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id k125-20020a632483000000b005742092c211sm2103096pgk.64.2023.10.18.13.46.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 13:46:07 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 0/2] tcg: Improve expansion of deposit with constants Date: Wed, 18 Oct 2023 13:46:04 -0700 Message-Id: <20231018204606.1545518-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x431.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 The introduction of tcg_gen_deposit_z_* pre-dates the introduction of tcg_constant_*. These days, a reasonably up-to-date translator should not need to manually choose between the two deposit functions, but instead rely on any zero register to supply tcg_constant*(0) as a source operand. In addition, the hppa front end has some special cases for insertion of a constant (depiw instruction), as opposed to the current insertion into a constant. r~ Richard Henderson (2): tcg: Improve expansion of deposit of constant tcg: Improve expansion of deposit into a constant tcg/tcg-op.c | 323 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 202 insertions(+), 121 deletions(-)