From patchwork Wed Aug 23 14:55:37 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: 716089 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp845940wrp; Wed, 23 Aug 2023 07:57:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFCKWvLCawqsgxBLKfJJESrBHk2UxQ9L1bFdgYJOqsXYN/aivYA420Ik0EwcI4fw9Ry/gEX X-Received: by 2002:a0c:e24d:0:b0:636:e4f:6b9a with SMTP id x13-20020a0ce24d000000b006360e4f6b9amr14377814qvl.17.1692802650357; Wed, 23 Aug 2023 07:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692802650; cv=none; d=google.com; s=arc-20160816; b=ymau1anj4FbXVmWY4f5viaTrpSU5pA59O7B+BVyF4rYFxH3IPHHqoeIeWmkXg0GrFl A4V3MF6eGdz52BrxMkib56zlJuP66vX8UsSTCQjqOlvAsM8NPSLRQJ6wENQJwMMQZgUz FRXcR1995VA5vIa2GDm7Hsg1PBrcccyUhFASJc0qwec7hr0FwE7KNqorqzxTUtEXWubO Mh8cRiwfMWS7RzDYGoUvc+ml2+HDJIA/OHJX7jxYt5uGhaDFXbCqt4PesbpyCCl3j58R jKMUevNAz/LCCVCe6FwFZrM0OUWfH+UKT20cfgfFqC3hjHJo+toRNrLcB/P273z7Tj3K NGyA== 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=x/0A6NRHYgTIgaqFhmzm0vT0TysDa5bmQjI9W3T2tZA=; fh=yu5WrcKZQNMrhC/JtztxdBEgrd5tmo4xnBF1jMP240s=; b=wbg3/avX3Dms/rH2UQ1Wd5tJ8TTer4EsHOVMbkK/DD9JloA7auSoGR1SkUlGfRBLn0 0WWRqDY7PYDE/9Tp189ZlrwJmdxF46Z8JepuOrNOWyO/1kA8m+dKULGfTIEXzh7sE8Kt yp4xS8HVovx3WoKC1wCt4cpNxITKBDxUVfOSfjM030T7auNgEx5I2NUzBOGNE7QRPji0 orcjrPz5WMV7PBPdVzJdzH8SsEPKeD7eBSsPaceVw2H7wQpEwudkGqcQveJMJBlouHyU tOR5cB91B9Ue4KSHdI4upS9jnjNVnhCU9SUErVw293qnj8gzObqTNg7GG+PK5yHjpRUI QHMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="pPH/2B/v"; 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 ay30-20020a05620a179e00b0076d9a7b0971si2633603qkb.146.2023.08.23.07.57.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Aug 2023 07:57:30 -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="pPH/2B/v"; 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 1qYpHl-0006w1-4l; Wed, 23 Aug 2023 10:56:42 -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 1qYpHA-0006nV-Na for qemu-devel@nongnu.org; Wed, 23 Aug 2023 10:56:04 -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 1qYpH9-0007We-86 for qemu-devel@nongnu.org; Wed, 23 Aug 2023 10:56:04 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-52a3ff5f0abso171301a12.1 for ; Wed, 23 Aug 2023 07:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692802561; x=1693407361; 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=x/0A6NRHYgTIgaqFhmzm0vT0TysDa5bmQjI9W3T2tZA=; b=pPH/2B/vAgDI0Dz+yENsXNTZP92hGmDZzbRTMMKZkiH18Br9QzbgmetXJ2o4QK6JAj 8FYJsQ+9Y3pqlDXbY00+Si+Os1Y1qQ9C3Os+MhSUpoPfXOAwvS5AdZSOiwIMhBCzSky/ oMrHSBK5TKzPpvWeXQiTJlV71HqHRsD8arLI4Z5QVBGnP+KN6ncVMo1W/xsS25FLK+vR j0MIS5rEaHk4IiuGQimLGEZ0WHyIBAi7IBPWod8HYuOsN1orGsTpDGUW1xj/7mTMwk3w nxr8rKvCv4MQGwTZ/BpcWXwZDjAdu6fUKVTR9GZeer4yDjz8vithTQr9mPBGkJpSAHPx bBpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692802561; x=1693407361; 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=x/0A6NRHYgTIgaqFhmzm0vT0TysDa5bmQjI9W3T2tZA=; b=iJljPe8g0Bn1OnbpipzPTw7RdFHXBCkH+KL7LujG4rdl45cf12wzb08Qa6MMpxj/2c xTW4n4jauKKUMogRn1mHWYDwlNjVbhLtRxll0cOcETolVmdrunnTULf9747ovbnKtVG5 SBSNsHVzsxPr0o1XY5YryIj6AT3yH6tnSSBDspU4q9qNS0Qt520k/Z5ZgWisFmJgp3Ir fX6x3GJxulKuGvaEqndcQNEx0B8aW1bFK0sEF/wLxlpm+43p+7YoDV/g4VkcApw+gPaG F95lP9viPaVmfZU07DdAKzX75d1/xvLdxpk4XKxaAHKnlb7Jnri3zIcp/qu764zZIPuy u97A== X-Gm-Message-State: AOJu0Yzq7+jNi5CDmHMQlPYMXBs0iFUwj/K2rRJc76bZjQM1ZQByNU8n sNPKJvFz2N16Wx3SdfGa5ZnB47KAwb1TL9yZBA/uYA== X-Received: by 2002:a05:6402:134f:b0:525:6c9f:e1a3 with SMTP id y15-20020a056402134f00b005256c9fe1a3mr10198188edw.20.1692802561669; Wed, 23 Aug 2023 07:56:01 -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 i26-20020aa7c9da000000b0052333d7e320sm9403473edt.27.2023.08.23.07.56.00 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 23 Aug 2023 07:56:01 -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 3/8] tcg/tcg-op: Document bswap32_i32() byte pattern Date: Wed, 23 Aug 2023 16:55:37 +0200 Message-ID: <20230823145542.79633-4-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é --- tcg/tcg-op.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 80ec6f01c4..fc9b21d30c 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -1069,6 +1069,11 @@ void tcg_gen_bswap16_i32(TCGv_i32 ret, TCGv_i32 arg, int flags) } } +/* + * bswap32_i32: 32-bit byte swap on a 32-bit value. + * + * Byte pattern: bswap32_i32(abcd) -> dcba + */ void tcg_gen_bswap32_i32(TCGv_i32 ret, TCGv_i32 arg) { if (TCG_TARGET_HAS_bswap32_i32) {