Message ID | 20230408024314.3357414-13-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp607193wrt; Fri, 7 Apr 2023 19:46:01 -0700 (PDT) X-Google-Smtp-Source: AKy350bsoT6BHVDKyPsZMC8TtN6qfdnV7ZMEiooyW1xBk7vZZx8UgT9E9b2g6ZJX3h3tNhM3t7HM X-Received: by 2002:ac8:7c4b:0:b0:3dd:a703:f7df with SMTP id o11-20020ac87c4b000000b003dda703f7dfmr1507049qtv.2.1680921961233; Fri, 07 Apr 2023 19:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680921961; cv=none; d=google.com; s=arc-20160816; b=wKJGe1S1ksMhrFkITSbrTl/IYJwy2xubKLxeojm5LPGVGfJ3LaTf5pLrkgnToXQp29 cevVZs3UpbRZo8X51tx0mAGOLpyS4Fx7lnGrfQGWbSVopn6f/zQ416/EF55kZbNej3Vx Ju+7y1A9JK8O8vAYlDmLsMO2qOskc8x0BYpopYpoqt0Cxhmk6X9jE88D/IfBvNoK6PnB 91BZfCNBP19Mt42MVMZyjl7FaI8XCOM3XAER54tA+5L2+FdNKSYMKYgK5TJw29MdWBnx lEBo44TOu5DQrKSbxuhExyBK9fzbslTHKgqQ8mcR4ymmziB9I+2j7KvlXrKf7Spkue7F rVOA== 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=2UYA/jGhRJM+9A6MoPBOmAbOd+q/t7vvHeLmOB409P8=; b=IADzP1ktI7m2Z1zHs64FKsFAJgF8/iN8iVRKSqa2zD9MJAVvm/fyOswgWAfNmVWISy uGBlrHIhGiH0cBKeWV9//fcQkinvZkDmOsvUPu9ZVGmk4nz1Ff/Mc6eSJUDg7hHtE2f8 qxZn4EPd5ous1XjFz1f8r+6A0f3RYLoJoFM8YVcxkfYDbpZJ6iCePv4+XsHo14P9NxUC YvUFfBU0pDUwrhZinQRC1kWu0Jo2RsNUniWdFy4GEso6dFZCsCV7SpgNngBMoKYmTtY3 xog01+VwyrfEUeoJjFtPPs6uiK0q3tjB1OhBYmth7HGHNCc/t+f1GOAWrqLq47CEbSuZ oH3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u2rF4fWh; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 8-20020ac85908000000b003e695c05769si1209836qty.400.2023.04.07.19.46.01 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Apr 2023 19:46:01 -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=u2rF4fWh; 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 <qemu-devel-bounces@nongnu.org>) id 1pkyYM-0007O5-La; Fri, 07 Apr 2023 22:43:46 -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 <richard.henderson@linaro.org>) id 1pkyYJ-0007Ir-Kn for qemu-devel@nongnu.org; Fri, 07 Apr 2023 22:43:43 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1pkyY4-0005dc-54 for qemu-devel@nongnu.org; Fri, 07 Apr 2023 22:43:43 -0400 Received: by mail-pj1-x102b.google.com with SMTP id c3so663876pjg.1 for <qemu-devel@nongnu.org>; Fri, 07 Apr 2023 19:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680921806; 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=2UYA/jGhRJM+9A6MoPBOmAbOd+q/t7vvHeLmOB409P8=; b=u2rF4fWhJ8Ci9PeVl3IYHBgjlwfx65cS/iWcV4Yf/wusb1jy9lEIU/2jxqZYTRwQQe MNjWj1PLEWyipIp3wzsTClT5GnWvDW1v30qKJxQM4Ew+9dk/T1qLnWLPeDgnsu1pSHIJ ShlgvVC+5gcQl0Se96VPjrDHy53Im1foUBnOUNNB7mUSE12H1KBeF3ZbD82yI1vyrJjQ xALwavkLh70NHZWYybDgRq0qkfX/U2JfANvP+GkX4wLiKiHaVNAik75CwvvuJBUh0E8f OciA6Mz/z5KtKSq76AgWcA9/1E1SorIFT3AFCMv0u01PH3hU/mCGjjd6Z2beUaIt1alM 9Hbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680921806; 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=2UYA/jGhRJM+9A6MoPBOmAbOd+q/t7vvHeLmOB409P8=; b=lkuxJ/U2Umel+QBtC7opd44qq8fp9lA0ViCTnLh7nI/IR9JZAy6lHSSESdpVkzS+2h BiQRKEfosXkIVr4czhOVQGXziG4e3x5NqXQC/fmvd5SHCiOr+HgPQ5J0PVSZjD4U5zkq YYH4e8z5AHztdKO/SvwJvRZpyv4zRMMrRlge2wOJyIrIvNbrLEsmUQaOSglNZakCqxPG g/auUVyUcMwjqlqm7KXUKCdaTjMyqpLCO9wgr5edY9Nezf3e5MzT7trWorJ+ypfGRny3 6iM34uA0k32MiB6S6lLLHGvEcAvJRlOot6fBNWZDjiUD5rAOEb5OvnGwzC0IH/OimHdw SB5Q== X-Gm-Message-State: AAQBX9d4/+B+DkV20w5Qf0HbHM/rBSDZfr199431Zr8TgdBsZeywSDDI ftjKAKu/mqEg9WTdxwtFTM6V3+cQg6CS9cdFT8Q= X-Received: by 2002:a17:902:d192:b0:19c:e664:5e64 with SMTP id m18-20020a170902d19200b0019ce6645e64mr535056plb.2.1680921806724; Fri, 07 Apr 2023 19:43:26 -0700 (PDT) Received: from stoup.. ([2602:ae:1541:f901:8bb4:5a9d:7ab7:b4b8]) by smtp.gmail.com with ESMTPSA id d9-20020a170902c18900b0019d397b0f18sm3530780pld.214.2023.04.07.19.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 19:43:26 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, qemu-ppc@nongnu.org Subject: [PATCH 11/42] tcg/mips: Conditionalize tcg_out_exts_i32_i64 Date: Fri, 7 Apr 2023 19:42:43 -0700 Message-Id: <20230408024314.3357414-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230408024314.3357414-1-richard.henderson@linaro.org> References: <20230408024314.3357414-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102b.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg: Simplify calls to load/store helpers
|
expand
|
diff --git a/tcg/mips/tcg-target.c.inc b/tcg/mips/tcg-target.c.inc index df36bec5c0..2bc885e00e 100644 --- a/tcg/mips/tcg-target.c.inc +++ b/tcg/mips/tcg-target.c.inc @@ -582,7 +582,9 @@ static void tcg_out_ext32s(TCGContext *s, TCGReg rd, TCGReg rs) static void tcg_out_exts_i32_i64(TCGContext *s, TCGReg rd, TCGReg rs) { - tcg_out_ext32s(s, rd, rs); + if (rd != rs) { + tcg_out_ext32s(s, rd, rs); + } } static void tcg_out_addi_ptr(TCGContext *s, TCGReg rd, TCGReg rs,
Since TCG_TYPE_I32 values are kept sign-extended in registers, we need not extend if the register matches. This is already relied upon by comparisons. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/mips/tcg-target.c.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)