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: 1992952 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=OkBBF5dq; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XL0Sv4Nzgz1xsn for ; Sat, 5 Oct 2024 06:26:52 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swosm-0007gm-RW; 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-0007gB-Q5 for qemu-ppc@nongnu.org; Fri, 04 Oct 2024 16:26:34 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1swosj-0007qb-8g for qemu-ppc@nongnu.org; Fri, 04 Oct 2024 16:26:34 -0400 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-5398b589032so4233582e87.1 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=VlqxxYD73K9U9+mC9/7vDDfU7jekZbFOXoj5K/h0QJey9ZhhT05f7XFvx5BK6iE4ZM FEq9VMDjGCc3eplO/00MLsonIwxCf72yHH2wgP2bOyD9+9oD4GVQz9Lww5ryqE2rBlk0 Ws0g7ctCF6ERqlY6kwP76sE2gS5iDIgygnRElraivUqBWFNWJAZeq87TTxODiNJMoZ3h oLNHBjP2aFrWfZcUHJBG/XMsxElmKLbdO4VrQfq7+CiPrezWIPDzOeQsUzbIAYQThYRl M15XJc3Z8BMqJjooarqva2SOFg8hhtIvz1kRdo9r5aj4bE7Lpxf1kzckHeBvFsA5Qpe/ WtWQ== X-Forwarded-Encrypted: i=1; AJvYcCVNpISqAjLTHQRJhwz0WAezIbxnj++WFQ7edQRVkrUeSu7GPh3hwGIiAdpp63roDcHiqKCmKbCnMA==@nongnu.org X-Gm-Message-State: AOJu0YzErhs7dxdzRs48UQZWtR9w7kcJ7dGf+7sVJWaM7pgIkfFWF849 dOI7Qdm/DTO+UO/nFuB1QBnmaHGZKTL0jDjCvthSFDbw6Z9TYOBfrtdN/BZMAMOoTZ4lrKpl4E8 hae4FzA== X-Google-Smtp-Source: AGHT+IHDsnkDts1wWzwVjQiDsU3zq4XnGVAZPJsOS3+i/bIc62RNRA8j0dM8Z62kQntXjJmwTabKyA== 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::12f; envelope-from=philmd@linaro.org; helo=mail-lf1-x12f.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-ppc@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-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-ppc-bounces+incoming=patchwork.ozlabs.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(-)