From patchwork Wed Aug 23 20:23:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 716132 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp1003168wrp; Wed, 23 Aug 2023 13:28:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIUF9HPkMCWp/CaWw630UR2atQwr1NZ1NmCSyr64W3xxP8jRNxxY3890uuv0pU5APivHvd X-Received: by 2002:a0c:f00f:0:b0:63f:63b2:624a with SMTP id z15-20020a0cf00f000000b0063f63b2624amr14427804qvk.48.1692822502819; Wed, 23 Aug 2023 13:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692822502; cv=none; d=google.com; s=arc-20160816; b=HUPKqE/vronShUPSyqWGpB04i9fEi2VtUJgqH4BrghuyotaG8xQDoVnHNvG7mdXH2+ 4wIcIEzRo5eIW+qNfe0IjfkS3byhvtQrTIivJZOfcdR0vPuC9XYQ7HpRGSLus4fBIneZ OuEOyWjUF+nAyn6rFvmxTqD4oX8ccpfJm9tS/7wtzgmDdkwQzE8BOWucrh5WI7pCC0k3 cc0eemDzAg/lnQXN60wd2s66oVI4k6rg1yHoYoVnPgXeUazRuU+PQ98adjWmojgWoybe /kY9KR37jLiBvkOq/ztm/aGootuSNZJlh1rAQzEALxHukNu8jGAcKzedvzKV0Cf4SwpX F/xg== 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=7BLjPy391bKC/2XwowKZEESNB74b0AUWTN8kpr/E3og=; fh=i1mkeM7bD/ppus3C3v+92ltBBCUUU0zBXrpbYjAjHqE=; b=PXN4XOSdONNl0KgXRzmhV9Fnq0DTyQAODJyv9NPYuLpAhp6MPNvr6HEKbAmLYVa+JV b1PxRSs9DpgzgmheJaQT755fVhv/BXuAcd+dnCmAXgNhiez/gSa9uELQZn2bDnMXd7tI My5S+1VvQvuNUtWqLUnyh2iJT+eKAz+DHPpESdd/l7Izy/eM2gC9bF/TY8iTNmk7A5DQ cBkScMmH/tDRCV8X7GYwR4rgZH/EcFmdA29qcu7CbcEj4U31Zecaa1wm+txciZ6NlQXH zRWtC440Sv2L0Qug0/b6aTtUvSHQWEfG2aqI5CElOFVakhxA6xoftAMdKXpK2ZiC3GbT ii6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GEqNdYIP; 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 y13-20020a0ce04d000000b00647406ba096si7777285qvk.575.2023.08.23.13.28.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Aug 2023 13:28:22 -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=GEqNdYIP; 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 1qYuRe-0005bm-Pb; Wed, 23 Aug 2023 16:27:14 -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 1qYuRc-0005KK-9h for qemu-devel@nongnu.org; Wed, 23 Aug 2023 16:27:12 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYuRa-0006D8-MI for qemu-devel@nongnu.org; Wed, 23 Aug 2023 16:27:12 -0400 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-68a3b66f350so3715206b3a.3 for ; Wed, 23 Aug 2023 13:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692822429; x=1693427229; 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=7BLjPy391bKC/2XwowKZEESNB74b0AUWTN8kpr/E3og=; b=GEqNdYIPov4obhdtBjuj7TIHZ2xgnPU/PqDwh9o2qYgN31mVp2naC2hQH+LSIkxAOA FHxgrhd7t6CFBKd6NslSzC2K7m1LRJuEzkGyZo9xahnUyoTZ56cGKmj5ialJriSfosoI jkHGZ0kPQsN1f8i3MCDavPVTZp9XlPYaeTwxFhZb8Kq6xDQxUnfcO3t9I+YE1ffh0Xhp V+6YnQGO0U7gaYIu9mUx8kNql5E/ZbauOdjwY8BIeXW9Eaw71E8Toad6RYdlRfbV3pkH V4bco4TWgiaXEplZLYXua+1FyJwOWcgzUJ9+3V5bXWdefejDt6VBpzEea3/kCXTeoJ77 Dr1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692822429; x=1693427229; 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=7BLjPy391bKC/2XwowKZEESNB74b0AUWTN8kpr/E3og=; b=X5xOhM0zVO8YZ9+DNSHIio76Sny4QH9P3eydsT7sazDOqsj4upG1ln7B297suKrAj2 JPirADhlAJvd2ewBBO6e7DJUfzigEUGc5BHJF/I7TyAhJp15nnHexOS/2WQjP8Gghc2X bTH+fOxDdDKG5O8iMfQ0EnqKt2XsKcRLpcxy+lB4OaiS03+M8uo4as5noVbuighnEtVm hIpQ8ulSlLP7o1TUMl/Tw/lWT1WW4wVf5OQFTypGYnrI7z9ULNlcRa7wy5pXGtVtd+/4 TEIYMj1uilriHGmHFu0rJTGA2QJFgDHUZ8SxfAmlsfwQZt9gBvhfddLCHw7z44BRp2+Z bnbQ== X-Gm-Message-State: AOJu0Yy1WlJ3XEDQ4b82iJBIcToA0HQBUutXVnBiPI8IGK6TzRRgdrAY JSnHDBMaYdAJb6ld5iv4Og+gyY1jufoSt/+U3eE= X-Received: by 2002:a05:6a00:124f:b0:68b:e3fc:b833 with SMTP id u15-20020a056a00124f00b0068be3fcb833mr2304674pfi.5.1692822429223; Wed, 23 Aug 2023 13:27:09 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:72f0:1ea7:85d2:141e]) by smtp.gmail.com with ESMTPSA id j25-20020aa783d9000000b006873aa079aasm10117871pfn.171.2023.08.23.13.27.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Aug 2023 13:27:08 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 45/48] tcg/tcg-op: Document wswap_i64() byte pattern Date: Wed, 23 Aug 2023 13:23:23 -0700 Message-Id: <20230823202326.1353645-46-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230823202326.1353645-1-richard.henderson@linaro.org> References: <20230823202326.1353645-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42c.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 From: Philippe Mathieu-Daudé 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é Message-Id: <20230823145542.79633-8-philmd@linaro.org> Signed-off-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 58572526b7..02a8cadcc0 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -1950,6 +1950,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: abcdefgh -> efghabcd + */ void tcg_gen_wswap_i64(TCGv_i64 ret, TCGv_i64 arg) { /* Swapping 2 32-bit elements is a rotate. */