From patchwork Tue Aug 22 09:37:08 2023 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: 715723 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp163894wrp; Tue, 22 Aug 2023 02:38:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyANPQnR0kdY7Zu6vDj6kdg71OQHqZDlGH74UEytJ4+6v39xi4uU1ByH1tCr9eGbZmmWnF X-Received: by 2002:a05:620a:9c7:b0:765:a74d:62b1 with SMTP id y7-20020a05620a09c700b00765a74d62b1mr10433747qky.19.1692697138815; Tue, 22 Aug 2023 02:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692697138; cv=none; d=google.com; s=arc-20160816; b=T/mueiekE0uBbm9CNQYw7p4IYXbNEmRnUejTYev8H4yMo/Xz44J/3M1MOkgt/RoxqJ Jmc9sRgvlNByOQFy038aeS93tEQ6jNawzx6+jil2iyJidLSbQyXiDFdkycL4m7Lglbl3 Mogk+BMckVyOOd1+D5ILNPiDxletyv9MI4DH4kSjUi+u4ufH0ZKtZ5V3MghEGfriCdCA IU+03EY1X3D2rDefKfnB/YvxfYq74mV7iE8BKOax0ZWqxhN7zh9COra+iZ7UNqpaK53S IGwEeHMhmpnP9b+QeGRbm9QNZ1MaW8ElA3TRl2rJa6cpH/qWst69vvvVFvNtdPLGGIfh fwBQ== 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=/QkMiRMtS+BPrSW1C74ldMs/YFboqxxYKG6pOhc/mwU=; fh=eYtoxxKzGuW/ZzBKGY04QGXjEEWdmzL/9j0dDOZVqP8=; b=N7IguNcbfuhRbVFrj9J1wz4hBttD+ZvfIHOsUa3eqVR0iLs2+Q/Ekn1ATtB2w6w77N XNRzMZAtHMfYF6nA8O9Rpg06ca6WX24ZVooNnl5lU0enfpoyFyZcsvhgr4PR4CWa7WQo XcYS//B6sRqc2d9JF2kgQkI+cPLW0L0bBPWHsl0YvRB2pp3XYZqTRe7AkTsHdP9Bcwzj tdaPtHvU3wRQVOTqtXllVvgnB0uSGFRPVCqRPXzLGwGzoSfhm7ZsNmeWc+zh3pDp1LyT 2uW1RRwaPOijKkr+o77/9YNOdDh+bKxgk5mkUIKWOBVJnnBBHdLXf3J0UByjkAYii1Li D3tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HxhCKrhL; 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 m2-20020a05620a24c200b00767b7436df3si5124676qkn.319.2023.08.22.02.38.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Aug 2023 02:38:58 -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=HxhCKrhL; 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 1qYNpT-0000Uv-FM; Tue, 22 Aug 2023 05:37:39 -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 1qYNpR-0000Uc-6J for qemu-devel@nongnu.org; Tue, 22 Aug 2023 05:37:37 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYNpP-0001fL-3D for qemu-devel@nongnu.org; Tue, 22 Aug 2023 05:37:36 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3fef5809999so11181895e9.2 for ; Tue, 22 Aug 2023 02:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692697053; x=1693301853; 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=/QkMiRMtS+BPrSW1C74ldMs/YFboqxxYKG6pOhc/mwU=; b=HxhCKrhLNHY9hutzC5ZPYe2DemcqKXyNX7mvHguq5SqvdViD/sFD0mza+9X9buu6dj Ds9L+RD5XYDWnuQFKAOUwXf91NOnLN+TVzvRFT0gASbqhlaN1dGVXdorKc4uklWdyi48 Y3kfQapDDUUETu2hmr5MTYuPKhYm+GH2yZnuKC2Twxvw2m2s2DQ3CTzrTyVnsbQXOlpj Se/TJLJv7NTMMxjY+o4oND30LFNfrz7Eg7vT0egBOx4eq5zfZbeor8TjT/bOqQd016K0 Of5WN1AyaY11dUmyg8AEyOE7T85wgak7jwYRpW40OaC1RvrzTe+rLVqfX3rl0xIV4aQc 9e4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692697053; x=1693301853; 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=/QkMiRMtS+BPrSW1C74ldMs/YFboqxxYKG6pOhc/mwU=; b=jLYQ3l80Y+c2EvjzSlahc1E2h5eXio+kRKO1iZ7jmNtm3fToWvq0writVVBeA62XMO zm1ur5L/LNeONzbSBZO8DPk1TcCJ/qntqWx8SDdn1Y38AKfI17hl9aFwnF2DKNk8CO5W D9jzTqyt0hxolXvc1JiCpIUXJkK3oFEh/MkXSYKht4j12xSte29czzSA1K+jufSa/MEN UPaYuuhmvGnwdZSWybBzT17eCLYkCsFcp2xR+B2eULDK2U2irR3Yv4woLbh3+4ycPvRA 9evQHiQNBQyuAI3RJmSZ2DtgTUrLndIxlIF09L1vYn+jy1TfblvV3eVRKBJeIMfGJCFj C75A== X-Gm-Message-State: AOJu0YzDt/szyZr7/LEzaaU71OqrWpq/qjWIh2vNNJwcwTlCmT+pw+aH 3rhjCN7pGa/V65QPFltyWBA4Uie2U1/Z3sKYdszo+Q== X-Received: by 2002:a05:600c:2157:b0:3fb:ff34:a846 with SMTP id v23-20020a05600c215700b003fbff34a846mr7168833wml.22.1692697053440; Tue, 22 Aug 2023 02:37:33 -0700 (PDT) Received: from localhost.localdomain ([37.19.214.4]) by smtp.gmail.com with ESMTPSA id eo4-20020a05600c82c400b003fe1a092925sm15259234wmb.19.2023.08.22.02.37.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 22 Aug 2023 02:37:33 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Edgar E. Iglesias" , Paolo Bonzini , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH 3/7] tcg/tcg-op: Document bswap64() byte pattern Date: Tue, 22 Aug 2023 11:37:08 +0200 Message-ID: <20230822093712.38922-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230822093712.38922-1-philmd@linaro.org> References: <20230822093712.38922-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- tcg/tcg-op.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index e6b0d74a46..f4fe13e040 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -1828,6 +1828,11 @@ void tcg_gen_bswap32_i64(TCGv_i64 ret, TCGv_i64 arg, int flags) } } +/* + * bswap64_i64: 64-bit byte swap on a 64-bit value. + * + * Byte pattern: bswap64_i64(abcdefgh) -> hgfedcba + */ void tcg_gen_bswap64_i64(TCGv_i64 ret, TCGv_i64 arg) { if (TCG_TARGET_REG_BITS == 32) {