From patchwork Mon Jan 4 17:35:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 356412 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp15149832jai; Mon, 4 Jan 2021 09:40:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOVFAgW+uw0ZRpj5WPJQT3lqvu846EddTsywvVx8KwVaNodnL3XknLXDbBXnwUcOuYb9Eq X-Received: by 2002:a25:bc09:: with SMTP id i9mr109540725ybh.141.1609782003775; Mon, 04 Jan 2021 09:40:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609782003; cv=none; d=google.com; s=arc-20160816; b=Kl2W+HjWNZZLYQWd/ZOji+iz/s5b8Xso8+hzJwz3aWdpSVijPUnKMN+twTh8kjq7ki o0lB+4dfy+fLRZlaAQGnkAP93LHo+avrkfPuEPDelMndAi4fPy3eVkX0KTp9j4zXKO2/ FBCL5IGYQjSEXp797XcOKRlWIWw8FIY4whfiipGzhk+gIhFsrGpm7CXszVkqA2G/+Wed cYbOf0PkeNntPwK1NSECIe1ymDrcGDa124QM64GmVyvmadoLtZru8l2jKaVPu0e/gku3 9ZxYGP8ZQwb48oXChvpPDO0fBizkW39PFnh39z9Ik8hTtQwybqjnzFPyhf0Z2Vo2VOc5 L7lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=T4//Q2GCuPy7as6bx6wtUDgAn+xSz8nl2x8ziXjxGSQ=; b=jEFFrjlmCvtHNozCghkqS5EU/Rd0YreSFyvfaRaaQZPQeaaW3CjStNmIlPiywbZaff kFTHDNkZYm1v8UXz5EwV6I4yuQMbRXVGEpi81vvs34H8BisnC/GhPdjLZ56VlZBsNj6Z U/luTPPnYNwmKPSG5V/suBGL/EkPb7HLvlerGWL6BXAS/Hs2Ct2kJqnbNygrWI/J22P5 SxK68u1udJ01eH7Y6CIYiF9ztbfvZQqtNRXkqvgDTYBpzuIZtlgyXDcfmvnJGaUYmizQ 1RvIhgeH1hpo+7n5HUnjX660671YkwrUXWzvf5fn4FhLFCSZsQsJV34BQimizV4FLush X+Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=c2eSPGW7; 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=fail (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 s5si54093568ybq.464.2021.01.04.09.40.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jan 2021 09:40:03 -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=fail header.i=@linaro.org header.s=google header.b=c2eSPGW7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwTpr-0007yc-7G for patch@linaro.org; Mon, 04 Jan 2021 12:40:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwTlS-0003uG-Pt for qemu-devel@nongnu.org; Mon, 04 Jan 2021 12:35:31 -0500 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]:33729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwTlM-0005zx-TY for qemu-devel@nongnu.org; Mon, 04 Jan 2021 12:35:28 -0500 Received: by mail-pg1-x52d.google.com with SMTP id n25so19512768pgb.0 for ; Mon, 04 Jan 2021 09:35:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=T4//Q2GCuPy7as6bx6wtUDgAn+xSz8nl2x8ziXjxGSQ=; b=c2eSPGW7PizGHA2sRC+OCDiEm3eF9IHpa5Hr8HQI9E5Y59c1tt9nKFxufYL2x1GAly 58eFRhVIsvlyUw+5kRRXE5SSDuJtYpiqgzMXkP4M25Yd3PZXLdiIS2V6ueOI/hvdC9bp wyb0ViKX4gVoAblonN6u5+zEhlGSlga5MdWPxcL2sSyS6nYQWVAJvP/fdCcaKVAO+EEn drkyjXXi7Zorkz9Lqvo7r8tnQGLrpSl0y20u+2qIZRZmCPx0pD1Wtt8hYWncz9w9RwHJ dMIql1VtPS7W2vCppMKkwLYB2uDLFii8aQycPzyuWOKmEX7vxcWil4IEVXZqvqDjIW4X BMIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=T4//Q2GCuPy7as6bx6wtUDgAn+xSz8nl2x8ziXjxGSQ=; b=WcbGc8lltjaaVx/pUEvxTL7jmm0VREHEC5LtZobZSwgBhpQoNoeg5RVGRgUxMvnsnD 9SklYt3r6GMNp7gqHYkRc8m6Q22DwexXWXzbTqyIyrXWVTWxfbW7Vhu4wnRxs3blWBpF sYRVAhKzl3YbnFmi4rLd0c7cS7HQVnv9Z42gbx7f+D9uiHMgtKTNxhKU4yXYhH5vMUeR LVS+ruP2ezoi1N50uv3QZYWBG4cQsXaavbW0uv4VwmdB+sE5OSrtg9cpXUkX6ewpeTR+ Dy9awZax53Yomz2vgLNulHieNyubj2ddLiDoZ2dg5x6yAmylRUJ8mojfPJjAQzB3CF+p Z0gg== X-Gm-Message-State: AOAM5315Qy7eRiZ+1JZTxJIZ63gfhoOTSUDqBpc2K1r8Lnt3gGxxs1HU GBevUaXOAstxLDYK9e4HUnDkFb1KRC+3XA== X-Received: by 2002:a62:7b84:0:b029:19c:7146:4bbb with SMTP id w126-20020a627b840000b029019c71464bbbmr66747940pfc.52.1609781723249; Mon, 04 Jan 2021 09:35:23 -0800 (PST) Received: from localhost.localdomain (rrcs-173-197-107-21.west.biz.rr.com. [173.197.107.21]) by smtp.gmail.com with ESMTPSA id a131sm50706933pfd.171.2021.01.04.09.35.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 09:35:22 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 3/3] tcg: Add tcg_gen_bswap_tl alias Date: Mon, 4 Jan 2021 07:35:15 -1000 Message-Id: <20210104173515.198921-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210104173515.198921-1-richard.henderson@linaro.org> References: <20210104173515.198921-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52d.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Chang , peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The alias is intended to indicate that the bswap is for the entire target_long. This should avoid ifdefs on some targets. Reviewed-by: Frank Chang Signed-off-by: Richard Henderson --- include/tcg/tcg-op.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.25.1 diff --git a/include/tcg/tcg-op.h b/include/tcg/tcg-op.h index 5abf17fecc..5b3bdacc39 100644 --- a/include/tcg/tcg-op.h +++ b/include/tcg/tcg-op.h @@ -1085,6 +1085,7 @@ void tcg_gen_stl_vec(TCGv_vec r, TCGv_ptr base, TCGArg offset, TCGType t); #define tcg_gen_bswap16_tl tcg_gen_bswap16_i64 #define tcg_gen_bswap32_tl tcg_gen_bswap32_i64 #define tcg_gen_bswap64_tl tcg_gen_bswap64_i64 +#define tcg_gen_bswap_tl tcg_gen_bswap64_i64 #define tcg_gen_concat_tl_i64 tcg_gen_concat32_i64 #define tcg_gen_extr_i64_tl tcg_gen_extr32_i64 #define tcg_gen_andc_tl tcg_gen_andc_i64 @@ -1197,6 +1198,7 @@ void tcg_gen_stl_vec(TCGv_vec r, TCGv_ptr base, TCGArg offset, TCGType t); #define tcg_gen_ext32s_tl tcg_gen_mov_i32 #define tcg_gen_bswap16_tl tcg_gen_bswap16_i32 #define tcg_gen_bswap32_tl tcg_gen_bswap32_i32 +#define tcg_gen_bswap_tl tcg_gen_bswap32_i32 #define tcg_gen_concat_tl_i64 tcg_gen_concat_i32_i64 #define tcg_gen_extr_i64_tl tcg_gen_extr_i64_i32 #define tcg_gen_andc_tl tcg_gen_andc_i32