From patchwork Wed Aug 23 14:55:41 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: 716090 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp846005wrp; Wed, 23 Aug 2023 07:57:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1U/zc+k5ia+DhEjU1u0MR0E2rgKFI6iTh2HIeaf0/qL5yeQwOCDJ/NbJDx6kRtbsDKr8C X-Received: by 2002:a05:622a:48e:b0:410:9a75:9ff7 with SMTP id p14-20020a05622a048e00b004109a759ff7mr7813025qtx.57.1692802657453; Wed, 23 Aug 2023 07:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692802657; cv=none; d=google.com; s=arc-20160816; b=U9LHEKYoKC9jBRT6Ck6d2dRvK24XCxkrNyr4rg1SnGnqXKtFNK5vX7d6yDNFSeKLAV 1m/TrCi28G7Wo6mWYLIjoCAgUCIJaZ8DRDt+WgUtpQa95PZdD3dHwRE+oLHfp3UQmj/k 5isGj58Hyw86vqBQqd+8pyBZtQh/8RhYLt5eXJ+uO1m0ooarqS6tnugySGR/fOYu8FBk 8Q7qUMcM/3Kzmips9aFM4ZVRVk8NkVrOipbHZ18v+++t7cxfkaEiWLh8iT1/xv6N/EVf crqVL8SCO6sw4MJo+I1Xhv13mDBEmHamMOcS4nfRI2bzKbpX/AzZOlW6gS1NoayIIKaY Gixg== 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=xCK2VK8xRH2D9lhMRhXp0tgYAA1ZvGcHBcKuN6vO5TM=; fh=yu5WrcKZQNMrhC/JtztxdBEgrd5tmo4xnBF1jMP240s=; b=kS+nstUilxxeHjiKhJa6Fc1til34eKsLq3bpNv6xaM90srX51zb0zGKXzcOAwaG/yz kckEnubg8ilzxlJMj38ix58aMCWSehON4vOuvyrbHCrjliUtwFuOeh0Z4kQfpSI40ZNK gL7+C8+dF0AoC5nyYJyX6/jlwAgjzCx7V9fzyw3e/UsxP+CSAZoweL9Hbwl9OaldG4Bd 9Vtlm7Pv0rWXYTnVR2uzsV8M0HOmdLL5gQ1LsVgmlYJDWW/rBRda9pKGUs9+jBMBSXBk /B/H5dGMXGm3Eg6NYJirZjDPWM3om2Vd23+qzXVmT5g6MVW5BWUasieRFA2BivX3hXdI otjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KTGplDGq; 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 x15-20020a05622a000f00b00403b0f6661asi7651593qtw.94.2023.08.23.07.57.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Aug 2023 07:57:37 -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=KTGplDGq; 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 1qYpHe-0006q1-Uf; Wed, 23 Aug 2023 10:56:35 -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 1qYpHX-0006pO-Pq for qemu-devel@nongnu.org; Wed, 23 Aug 2023 10:56:29 -0400 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYpHW-0007cG-2K for qemu-devel@nongnu.org; Wed, 23 Aug 2023 10:56:27 -0400 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4ff8cf11b90so8988419e87.1 for ; Wed, 23 Aug 2023 07:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692802584; x=1693407384; 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=xCK2VK8xRH2D9lhMRhXp0tgYAA1ZvGcHBcKuN6vO5TM=; b=KTGplDGqi2ppZYDvJqr8S/TDHTwHpwrqV1kwV5e5zcNcpp6BdYAmJHQtRxKpA25EYS oYqnnS8O+H2QbwsOH9cZ8KvdwTO3RP8xwEqjWzRPK7AhakO17DKlvOudwuuOq7rSNfSQ p/hLhkoxFUWWUQ6KP5Du5mAZAunm0nAsntAal04AnibwCI0kmTNziGW7gWywEwliZKgZ Z/NG+QfppITAg2fmhYEDQRVYD89/C6/APl1VyuerEGTWnLbfuumNuzZzfw4wRZX+V6Gw +bdGAAFSQqteXiWhyZPMXafIySLWVSbRB256CoFhT/LZ5YtqPdKgc8E3ur9hE5/WJlOf YGOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692802584; x=1693407384; 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=xCK2VK8xRH2D9lhMRhXp0tgYAA1ZvGcHBcKuN6vO5TM=; b=A0HkhpbaFzGATkPXnYbeaExU1Q1upvsexilaDDJYUeTOi4S1+qZuA13gnN63x2ntBA SSW+2uznBP/YHUSKQGhun5mNo3tEFrNbqyAuC+1ltBYsXT09nHsB3MrTGDyGGqRU8X1O p/3iHfOHpjDiID8zLVnXYYJiVi8kcws3RBFCgNmo0N/IDNjsbK92mImgu0YFKCFQYDRO uLvTCUjTobi8duv4+cwB3dI86OjXHux6xAIX+PVGpLdGELiAmhFXEdwAfMiPE08N6mJl MA1uO8NNJVMKDyBUltULoM1lvn2ZXjp/iHCOyCWW9ujO81w5lKX4ljodZeHTxYhvlb7i izeA== X-Gm-Message-State: AOJu0YzxvzF20333whcFup4A2HkxrfS6h5UmjpKijfbaEAEH9F02X1CA Ws7SAqGZmbMrzusNoC/5TZ4qVADcmZzEgPjkJ1Bjqg== X-Received: by 2002:a05:6512:3241:b0:4fd:f889:b9d2 with SMTP id c1-20020a056512324100b004fdf889b9d2mr7928402lfr.38.1692802583919; Wed, 23 Aug 2023 07:56:23 -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 v15-20020a170906564f00b0099cbe71f3b5sm9808961ejr.0.2023.08.23.07.56.22 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 23 Aug 2023 07:56:23 -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 7/8] tcg/tcg-op: Document wswap_i64() byte pattern Date: Wed, 23 Aug 2023 16:55:41 +0200 Message-ID: <20230823145542.79633-8-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::133; envelope-from=philmd@linaro.org; helo=mail-lf1-x133.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 Document wswap_i64(), added in commit 46be8425ff ("tcg: Implement tcg_gen_{h,w}swap_{i32,i64}"). Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- tcg/tcg-op.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 94134981a9..65a2e5462e 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -1926,6 +1926,11 @@ void tcg_gen_hswap_i64(TCGv_i64 ret, TCGv_i64 arg) tcg_temp_free_i64(t1); } +/* + * wswap_i64: Swap 32-bit words within a 64-bit value. + * + * Byte pattern: wswap_i64(abcdefgh) -> efghabcd + */ void tcg_gen_wswap_i64(TCGv_i64 ret, TCGv_i64 arg) { /* Swapping 2 32-bit elements is a rotate. */