From patchwork Wed Aug 23 14:55:39 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: 716087 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp845801wrp; Wed, 23 Aug 2023 07:57:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2JGDfeUERU+zDAs9rI9lYcdL1en3aYez5onX1uzoc/h3J5+WwbazBtGbytw9deV1zhQTp X-Received: by 2002:a05:6214:5ecc:b0:641:8ba9:68ab with SMTP id mn12-20020a0562145ecc00b006418ba968abmr11785329qvb.42.1692802628499; Wed, 23 Aug 2023 07:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692802628; cv=none; d=google.com; s=arc-20160816; b=hdCeVdEmTBuJHMEok0zF2lWKsMD+b0+eRDw5OVGDZIOdRPYqRqJ3y1qt9d9o6ZXJH7 HefnoZeWDd6YSz3OuCjIzo7y9PqL5i4aE4HLjSBqVLAawFI1IIJnFriHR8QC6s0O2aCZ mvdFrYRW3Zhaog49AX1YaHCMuDNgP6qk0iN241crKxGMRZDZv1IIvQ6KfkJ96psz2WLI AYxdhL3PpkjQRRt7miA9BvQkZWRutoL2C7u0L/ImspufdV5wrEsH1gJBwXf2RFP/wZFX qLTd/JwW1LsHY38id/AuVXX/bbPb+h4StVbdSLIjHKHxr83Sc23FGdZhX6hFn+09dUyQ E+3g== 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=2TDxedktHF/mlH5ygYaw8lfO5Y3QpjQH82Lwm6XiycI=; fh=yu5WrcKZQNMrhC/JtztxdBEgrd5tmo4xnBF1jMP240s=; b=EyE1xmw6EE/8ltA/vYwwzo5zTLlqR2dQgBTU27tbwljs5EC36t7YsZwj9gFgTae0Bl LM5lOoLqbR9HbWFLpqjNWI6fc9IvBVohZChWW5tODBXn1Fg/a7rNHuiVKJvN7OcWOGFk E5HpJZxOVg4iolsaJAa5T/E3+il4dnmePkDXC0jpFt7galDI/2sXoFc2uOMt9KuWI9Dr a50VWT1T0Gh7qy2ePdI8ODD4ytge5an0TGSfFxUSMeIBNYlO6ZD0kz9kqVaJpNCw/C8D H84iR4nHUTpsyWfHDmM0gJ1e0O6P18QoG4VO4ekdmc+kyV3ybAkD0fkwiuFtbGhRmxxe M+yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hvWL6+3n; 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 o2-20020a0c8c42000000b0064712f60cd0si7408413qvb.611.2023.08.23.07.57.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Aug 2023 07:57:08 -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=hvWL6+3n; 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 1qYpHu-0006xr-IJ; Wed, 23 Aug 2023 10:56:51 -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 1qYpHM-0006oc-C7 for qemu-devel@nongnu.org; Wed, 23 Aug 2023 10:56:16 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYpHK-0007XP-I9 for qemu-devel@nongnu.org; Wed, 23 Aug 2023 10:56:16 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-51bece5d935so7244625a12.1 for ; Wed, 23 Aug 2023 07:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692802573; x=1693407373; 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=2TDxedktHF/mlH5ygYaw8lfO5Y3QpjQH82Lwm6XiycI=; b=hvWL6+3nd4dLOv1KivUwXYLVIasA4s9FKim2Cbzm2CMd9DUvE1pZOu0f0wy5OrWARj 2WhrIzfeyI7kRljvN6vxhwDH3NTNpbVX33OExP8DEG2X4o+OcOaiv9Tg24srSNML3bt8 FriLfZujHWdZ7/ozy6fVmNZt8Dzez0v1HYlLBd6dOHzOBMK4XMhSEUrEFOF48wzLta/8 tvtSZtbcZh0d5t6470lapGxaDK7F4qTsSqmqAS2TTmayfRxrrLpqBw8TjmJdCSrp5+vV VdqmbdkDFbgvigBHfu61cnY8Aj8UdVkGzfnx3/zIl7/KxT3Ub4IKuCKaWDwWtPH+EqUj WCQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692802573; x=1693407373; 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=2TDxedktHF/mlH5ygYaw8lfO5Y3QpjQH82Lwm6XiycI=; b=WO7znQ5EjYYIaGpRz3pDGvD2xsIiBVfF1Oqwc9yIe58ln9goaxQJX51+jLQK7UAIXC Ifh4+dJ74a55Uq5LjIaDPRJY84RrpLMqA1T72qomILx6ifLYHSqf+3kJDw/PochGNigv EQgH8Icy/QxzJ5l3RTyeRc7l9w/j552B77GMZL4qXVfpLFpI3uxYiwSjkY/xPJ99sz2H 9ekguxuRiPZ4lTOzK0KJJzcFk6wpycDhTTgwDnVHEGtSFMhRgTZuI6XSvSPyXi7GAX5k ZAcx7nWcwXFW8V1VxUOFjMJEXBex1JDYoGeaIcg4C4qwFX7sc41gAaR0gS9RNSs7y2Ip oO3g== X-Gm-Message-State: AOJu0YxMg3pORlt36nZceGccfjvDq6AzFXQDxmLMzEgNv7JA+KAGGD5F y1sQ7Jw8/Cc5S0GpIyAuA0FjhJdswskGUsfrhpDoNg== X-Received: by 2002:aa7:d790:0:b0:523:b37e:b83d with SMTP id s16-20020aa7d790000000b00523b37eb83dmr10024633edq.41.1692802572895; Wed, 23 Aug 2023 07:56:12 -0700 (PDT) Received: from m1x-phil.lan (gsv95-h03-176-172-10-165.dsl.sta.abo.bbox.fr. [176.172.10.165]) by smtp.gmail.com with ESMTPSA id v13-20020aa7d80d000000b00522828d438csm9392751edq.7.2023.08.23.07.56.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 23 Aug 2023 07:56:12 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , "Edgar E. Iglesias" , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 5/8] tcg/tcg-op: Document bswap64_i64() byte pattern Date: Wed, 23 Aug 2023 16:55:39 +0200 Message-ID: <20230823145542.79633-6-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230823145542.79633-1-philmd@linaro.org> References: <20230823145542.79633-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=philmd@linaro.org; helo=mail-ed1-x52a.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 e6e62c4278..45290cccad 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -1846,6 +1846,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) {