From patchwork Fri Oct 4 20:26:18 2024 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: 832771 Delivered-To: patch@linaro.org Received: by 2002:adf:8b52:0:b0:367:895a:4699 with SMTP id v18csp961009wra; Fri, 4 Oct 2024 13:27:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX5Hmx7fvwX1CyGCjkYw4pjGhOG+Y158TDT7U+AmxVK2aqSs1tNkOeVS/kE0Q+q5CJBNvfFwQ==@linaro.org X-Google-Smtp-Source: AGHT+IFEMUvGR0dskwdhqQQ5nCuW8emm+pUHcZj1ex4qaC+jLqRFp6iITa7j9u/GiOg0XN5vGzxR X-Received: by 2002:a05:622a:289:b0:458:697c:8ed with SMTP id d75a77b69052e-45d9bae061emr45474511cf.52.1728073661161; Fri, 04 Oct 2024 13:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728073661; cv=none; d=google.com; s=arc-20240605; b=h2LrsbhUvnmnv6eDnCi4yaZmrzRioceQxiWDroAFbCxbvwkQe/p5SufZUTFIPa+THv H19Sd/Zf7kLr2xqcdeqWT3XL3H920Dl1cJ7W8npwL9a/qbum3fdguw800GzCVhrFQfEk d5h1zizNgebKMXFLNfvzrS0cgs6nzpFr39X5ptn1qfQzhDpYzXpDJ+ua5mj3dhEpHUpv m15yf1YZYIb8HLvxriB/zp7IBxWd+TynzwbLrsksD1BDu9t8KSb4t6SVprlJ1WA/D1SF DMe2xaL2BX4tUIhggDZT9AdflXhJ0PA27eG79J2RdYgqF0kckJVXLdBSLKfmzNI0U67A dMDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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:cc:to:from:dkim-signature; bh=LLQgRzH03j4KDZZg/DuGoGCaTZmvUbN0udQPjdBZrNA=; fh=846h4QdG6XFUXqeKWme2NZ8fNBbg0xxTAcQMdciLBtQ=; b=CAApjea3ZG7BTS0oFlaHXeDGOexFt9YFaoku6Pg4R3ceGzzXNPZsW2HX5MTvmvqBe4 OQYlVZQ9Mq16It5zeyNlL4OiNfvR7dHpbdFjMCflCZBMHLYLCHS3PU9o+C/0PtGp4anR KP0UOmDwkxTd1NqPudPA/oHie1BSCxFTxtM8VJBTV8rb13apTLJ2l1GD2ulJccae1OI7 FlWZyPVNpihoBK6KoXOMziPTb3pW8WGJVmgSxTYbOQF4WaGL3c6oNvHXl1Cv0iN7ZFVv DQxz3aObxfxo7HDOQ5bM/jng8NI+2CV38E4gPJBAJQWYKpnY03e6DoDLV3hpRyKFP65G hBAw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OkBBF5dq; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45da76fc3fesi5526371cf.797.2024.10.04.13.27.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Oct 2024 13:27:41 -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=OkBBF5dq; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swosm-0007gi-63; Fri, 04 Oct 2024 16:26:36 -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 1swosk-0007gA-Oo for qemu-devel@nongnu.org; Fri, 04 Oct 2024 16:26:34 -0400 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1swosj-0007qc-9W for qemu-devel@nongnu.org; Fri, 04 Oct 2024 16:26:34 -0400 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-5399041167cso4399242e87.0 for ; Fri, 04 Oct 2024 13:26:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728073591; x=1728678391; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LLQgRzH03j4KDZZg/DuGoGCaTZmvUbN0udQPjdBZrNA=; b=OkBBF5dqBOjZ8uht/zkwq8fawPe2l1UAdLKdknEQGcKCVWxz6tL1nIIuUFyDGXtMST OJ3Gpw9QRdxbeMvGC3gEsDr7a2/OSDpfUqDz1quWJF18jCCLthqouuPg3RqDecfDpkjp t9mjsdm6+QsCHzcxo4yLO8eMt7l234hGNFGN87vqw3uXIJg8kiP9yFdHpkyQFucWOsMY WMdpmjr8GBxsWTYMk7Q/SEAlyZ4ZeRTkyE7zhcn0gl201uBnGOK7LwkotTZfynjbWSkp Fp1TtdLYe/hf+Q1ls3+vKkZ68Rj1nz/2OFCpRhdbCXxt+C+ctqkCnZFuARn0SbRSKqOe BnzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728073591; x=1728678391; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LLQgRzH03j4KDZZg/DuGoGCaTZmvUbN0udQPjdBZrNA=; b=mziVxNVaoyxw+Rnt+Nf4Jf7bKgnVKstL+gc4UqPwAimdJvyTB51wIn3H7uFDgcDg1M SFTOGjY4MV4hkLlhemo3jKbGzvXqgH46/XASeXTgxmvSShUYuTlSwXsxS4DrtCtBjGzJ 9c9c/Kltpyk9HIJxa2cp497jvG6LCMeu3zfaNKbmID2ao/e9tdS6FLUwFiGCBwUU2d6G p4vnF66vz7EAMC0KxPXFI7s9Ca4zTuXIC9paP1Zi349cAX4wHdLp4d6U9jscFlhHR+SQ Sz1SHdVOLUsed0J2nrlaq00Z70m/nYa5kFdwSFVxZxeO41JCwhzCOoWNyPyuYT0lg30s PLzg== X-Gm-Message-State: AOJu0Yxq6jqrIzzpq89c2OcQGiqLGbNZ7dDTMnZWiGVr5WL+pQMEQYgn RmMlDSoL/bQ6p1hru6IzLh8/Y0BEX8Ptccwqa9wEK/ms+i8u+joBGEePwFTEzvqk/3WPFlElTsJ rE+R9Mg== X-Received: by 2002:a05:6512:234e:b0:536:542e:ce1f with SMTP id 2adb3069b0e04-539ab866575mr4141994e87.18.1728073590761; Fri, 04 Oct 2024 13:26:30 -0700 (PDT) Received: from localhost.localdomain ([91.209.212.135]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539aff232c5sm50239e87.185.2024.10.04.13.26.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 04 Oct 2024 13:26:30 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 0/3] target: Use tcg_constant_tl() instead of tcg_gen_movi_tl() Date: Fri, 4 Oct 2024 17:26:18 -0300 Message-ID: <20241004202621.4321-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=philmd@linaro.org; helo=mail-lf1-x136.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 Directly use tcg_constant_tl() for constant integer, this save a call to tcg_gen_movi_tl(), often saving a temp register. (Only build-tested) Philippe Mathieu-Daudé (3): target/mips: Use tcg_constant_tl() instead of tcg_gen_movi_tl() target/tricore: Use tcg_constant_tl() instead of tcg_gen_movi_tl() target/ppc: Use tcg_constant_tl() instead of tcg_gen_movi_tl() target/mips/tcg/translate.c | 56 ++++------- target/ppc/translate.c | 13 +-- target/tricore/translate.c | 3 +- target/mips/tcg/micromips_translate.c.inc | 12 +-- target/mips/tcg/mips16e_translate.c.inc | 15 +-- target/mips/tcg/nanomips_translate.c.inc | 114 ++++++++-------------- 6 files changed, 74 insertions(+), 139 deletions(-)