From patchwork Wed Aug 23 20:23:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 716120 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp1002831wrp; Wed, 23 Aug 2023 13:27:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFFlKkPudyiuXorTlXnrMf/uYxrltqxdDrM1iAaYriC2n6RWX3JfTcWtHcla/RblUlaMuk/ X-Received: by 2002:a05:622a:1207:b0:403:edd0:8a4c with SMTP id y7-20020a05622a120700b00403edd08a4cmr14466732qtx.23.1692822448626; Wed, 23 Aug 2023 13:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692822448; cv=none; d=google.com; s=arc-20160816; b=heq1qHl5u7TEeuJPmKs0ErhAL91WaFTBcirh4rcwSmQtHRj9DOPQjVf0KCh//wZCR2 j9ETNHxRbx6u5uOVnxiq712Xjapm06aQpBp2e9NWYFGQ2zbvy1Kk5mMiFY8c8eIkwBjH B9S20ahsUlRzNr91AT1F4nr4i72+BBqCCXUTwtyji2wr+7OKNlM9QinAw27FuikY098K vZXxu9re2lzo1chtwlcFAeQHe0Or6mrMap1uAVWcGCYNpzherJAfRqTO5wHCGWsBFcUo zDvC0KiK4Vxatbqpxx4NhMeyjNLuClLm+KnugplCiNgArQ87vo89DaPugEmRRxrRcbtL e0bQ== 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=gIrreZ5G8/kGRX0I9xt2390vEuxRjWw6n/lcuZL2BuM=; fh=i1mkeM7bD/ppus3C3v+92ltBBCUUU0zBXrpbYjAjHqE=; b=okHwb3P9xZDgglpLJGFRiAr07euPakfCthWigHCMLRQ30STkruJdq0bp30upYw1Bjm FIEMaDiLZYE8vUToISoAFbohP0QPHEHEry96jgx0s69YZYtjsntAuZGaU3y8NzTKLfDa PsReYBO0fF6KL3gqikdT80NUUC77+TrVmvpXxrbtHO/CVFKbppGqZzL+BNGBu+tB1t7Z PWhZw1ypzc9BTtxJzYgy8BDREd+6v6i4V3pYdEs5h8Gw3nCYm7fFPBf084GVEECG4ib8 NKg51TkuTHFoeYHTfyXUdZ64kHn0TQl9VsXXud3y45Uu7hXEh/CE9vlt80bvm7lS8zyF odWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NFzvhsQ5; 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 v5-20020a05622a144500b00403ef5890edsi2837936qtx.680.2023.08.23.13.27.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Aug 2023 13:27:28 -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=NFzvhsQ5; 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 1qYuRd-0005S3-Sh; Wed, 23 Aug 2023 16:27:13 -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 1qYuRa-0005Fb-Nf for qemu-devel@nongnu.org; Wed, 23 Aug 2023 16:27:10 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYuRY-0006Cn-Uk for qemu-devel@nongnu.org; Wed, 23 Aug 2023 16:27:10 -0400 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-68a440a8a20so3312459b3a.3 for ; Wed, 23 Aug 2023 13:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692822427; x=1693427227; 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=gIrreZ5G8/kGRX0I9xt2390vEuxRjWw6n/lcuZL2BuM=; b=NFzvhsQ5NGLhyR4T/PoXauTno4VzvgKLRLgNQ6l355ZnCAXhJ4m1yA0KtQ+xx2AOb1 mTJlIyIxDtCAOlxIJ6n0f65SOZRSiO3TqLnieLfX1LQmKz3rdTKEIEr2BZtv09j9BAgG Rhb1pJLICioux2BpbDBVWHCA8GeUsqekRZsC1xVTgr+0Olzph9RToJ8AtH/2HieY+XQI rZ01bzYaW/t9iwQsYqaxLtrTP6RE84lFM7d/2V7IGBKN9+TuOblTtgH+vkjK/mk1wihF dfuMe4cEFKFyPdLjuVPQBZ4GHIwVJtmZ4mjRWVKAiFD85s2/PRkudWGoezXss7uT+CoQ gNaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692822427; x=1693427227; 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=gIrreZ5G8/kGRX0I9xt2390vEuxRjWw6n/lcuZL2BuM=; b=iaE+tm+WhUksKz0uO1hq00fwtXwYaY+A+/ZOxRn1mD9Vsxs5WMd2hAfvKWTmpq/uhb 9q6IlpfTF1x3kBEnngAxtcck7qhRu/dwvSNlPtfw8nsJ/UEhPXl2TYiVIiAkka+4UjHC u2g6vIridHycfFBUNuaQQOLSyo1F3mzPUgXeLuX0zA7eyDxRZlu2moffyt21vXKuQ31H TMr1gh8tJ1whweou6qbDJ+FHAxTHxOw499SZLkFtaDCXR/wyx3N2bje3NHYEgpJZIpj4 2llhAGPT3tuwqLIlT34WzkYQiwj2y3kE9TUXDR0dT4Ur/XnnWEm5bKkIegdutncrx/HS OTjw== X-Gm-Message-State: AOJu0YwgDsR0bTHdT/SubT8Y+lgxZXgas7ZJEBfLXfXkEjlLNrbe781z UIg2Q1bgZVjoePQKVBZnP/BStcCddPxfOU7wUqc= X-Received: by 2002:a05:6a00:24d2:b0:687:5c3f:d834 with SMTP id d18-20020a056a0024d200b006875c3fd834mr18022486pfv.11.1692822427666; Wed, 23 Aug 2023 13:27:07 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Aug 2023 13:27:07 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 43/48] tcg/tcg-op: Document bswap64_i64() byte pattern Date: Wed, 23 Aug 2023 13:23:21 -0700 Message-Id: <20230823202326.1353645-44-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::433; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x433.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é Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230823145542.79633-6-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 b56ae748b8..22c682c28e 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -1871,6 +1871,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: abcdefgh -> hgfedcba + */ void tcg_gen_bswap64_i64(TCGv_i64 ret, TCGv_i64 arg) { if (TCG_TARGET_REG_BITS == 32) {