From patchwork Wed Nov 15 14:36:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 165407 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp2580186vqg; Wed, 15 Nov 2023 06:37:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHu/xUG5ETgxaFaPzGaq8/4dd2tWUEO4SIcuPli8O4FK7wVq4ojyEsJoM4al00cw72Dgyuy X-Received: by 2002:a05:620a:4089:b0:778:b029:100c with SMTP id f9-20020a05620a408900b00778b029100cmr6741524qko.66.1700059049456; Wed, 15 Nov 2023 06:37:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700059049; cv=pass; d=google.com; s=arc-20160816; b=RYSztI1n//qmrDFbl/IBTLT86KwKd/MHXX7G5MKnYBVBFf75kQ4+v2isVqby9GE2di TGTmT0Uec5wNduYRxaP2PFXgH0lrxZ46P6BGhJwZm/Yf4fd8PxnY5zgoxQdkA+nCdPy/ nrS0vdWJlYcOxVLHwCkY1sdFMNhV2huQD/NwZzrzL+vylGilaHhvzf7JOpX8hY7h5VlB xLIAfZS+LnnjcN470i/5iVCQV9fJopnPw4c67nIJ6+CbXpgkwq1dmcenlbcN5nXbqY1U ryfvy7m6BQAue0f4eKGzvW8GTA78q6ie3ELPoq3d0KClPGScb7VMOmZe9dkX3MCSI7cn JLVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:message-id:date :user-agent:references:in-reply-to:subject:cc:to:from:ironport-sdr :arc-filter:dmarc-filter:delivered-to; bh=W7ya5xQhl9VjaHK5NGiudGS02fWh21GfC9fRtW+gwdM=; fh=M+JFvcM5+3taTJfmUkaKH2/IzZ0iGjnUUeA9YwBBmqA=; b=riIYC5CqDgphkoX90mupyR7eHmRPEdBriBd9rHBBjjoqBVbVOxSAs+2J3XsgaLAL5B HsX0VmauQkrMXVnC3BapkzplpGHjVf12RDYynsu3L8/uQHtmclnp8AEXNu0rTpNxVE7w eVu3BdHujj8nCN1yBJaK2pOby99X8b/0J3C0vIJ8rgLCG2zyZzkHKfo6eumOEvREWAHh pQlZw8vSwcdDQg1WUwT8ZFmzkZNm1gT9pdeLmiQNE/tMH4AQS/nbg0bceSxpvvJfRkdC p2gVwdkosDykEGTL5CZUZGIP8kBW75IkmhxD9Yv0O2SfDdVsxnaR4FHgOlpDzwT9b1Lg ax2g== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id j13-20020a05620a0a4d00b00778ad9f91bfsi8834293qka.606.2023.11.15.06.37.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 06:37:29 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3AA923858C33 for ; Wed, 15 Nov 2023 14:37:29 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 532683858D20 for ; Wed, 15 Nov 2023 14:37:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 532683858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 532683858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=68.232.137.180 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700059025; cv=none; b=HGpGRaiAqVBDOMxd/yRqWX/vLmQWcu50S+uHBzq7fPgXlpskKZ8twPOrU0PgotyZi3OatAHnIGvFLCDXvDi9ZRqxjHJSr9qBQo+8XIl54U9w1no/K1Zd29C7dHLJPTcTFSWY5teKzjbrHPKbJ+CBzcfuyywDn83HjGlxydeerIA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700059025; c=relaxed/simple; bh=ovlvMriWJ5+4dybs9J5F4Dbx7YtqymWNJK4Bqw1CMTI=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=MxZu+XSeizmc0tlhmBXNddJNu/7WVrZBT7noXMgjV1h/aLoMAY6+/TYdxOow2FiwtN9XLTiOpGVQBxIZdnWNah7z8Lu3mHfh/KaEbYvjq1//jt1vtbWmAxLMVYxsSyRe6gtm10DQ44nruJ1Ybo/L0OtX+EQdzlVNd29EnXITF7g= ARC-Authentication-Results: i=1; server2.sourceware.org X-CSE-ConnectionGUID: Y2LOlUcWRyuQAdZkkeG7Iw== X-CSE-MsgGUID: Tu0VorePSQGzDHvpM9IAOA== X-IronPort-AV: E=Sophos;i="6.03,305,1694764800"; d="scan'208,223";a="22839995" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 15 Nov 2023 06:36:56 -0800 IronPort-SDR: 7qVRPHDbC8RLfGoVqzf/WS/562JOZ8LgKet1SuKBw5EWZass2cIlJmLLfzlCjI5WONJ7F0yfD1 XnT5pUtNQZTYOckBMoS/ukVV+WTjqVPAlw3/wTp91M/qAuqU8koCdINGCvIG3Xmiovt3m7IxwL pJpz+gRYTq75bJz6WUukWHqhYKI8i7hLEoll6x7mfmEeF+Ar+Oaa4hGOA4HIzJZ6KIfih+6MHn r6r6H2/OSUW/vCnKIqXKvmY9olr2OPDpQ91gI+ZFgaoDYn4pGrq2WaHrAyfdtBvC27FdOp9hk+ +OI= From: Thomas Schwinge To: Roger Sayle , CC: Tom de Vries Subject: nvptx: Fix copy'n'paste-o in '__builtin_nvptx_brev' description (was: [PATCH] nvptx: Add suppport for __builtin_nvptx_brev instrinsic) In-Reply-To: <007301d98034$82486ea0$86d94be0$@nextmovesoftware.com> References: <007301d98034$82486ea0$86d94be0$@nextmovesoftware.com> User-Agent: Notmuch/0.29.3+94~g74c3f1b (https://notmuchmail.org) Emacs/28.2 (x86_64-pc-linux-gnu) Date: Wed, 15 Nov 2023 15:36:50 +0100 Message-ID: <875y23ulq5.fsf@euler.schwinge.homeip.net> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782641117840346780 X-GMAIL-MSGID: 1782641117840346780 Hi! On 2023-05-06T17:04:57+0100, "Roger Sayle" wrote: > This patch adds support for (a pair of) bit reversal intrinsics > __builtin_nvptx_brev and __builtin_nvptx_brevll which perform 32-bit > and 64-bit bit reversal (using nvptx's brev instruction) matching > the __brev and __brevll instrinsics provided by NVidia's nvcc compiler. > https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH__INTRINSIC__INT.html (That got pushed in commit c09471fbc7588db2480f036aa56a2403d3c03ae5 "nvptx: Add suppport for __builtin_nvptx_brev instrinsic".) > --- a/gcc/doc/extend.texi > +++ b/gcc/doc/extend.texi > @@ -17941,6 +17942,20 @@ Enable global interrupt. > Disable global interrupt. > @enddefbuiltin > > +@node Nvidia PTX Built-in Functions > +@subsection Nvidia PTX Built-in Functions > + > +These built-in functions are available for the Nvidia PTX target: > + > +@defbuiltin{unsigned int __builtin_nvptx_brev (unsigned int @var{x})} > +Reverse the bit order of a 32-bit unsigned integer. > +Disable global interrupt. Pushed to master branch commit 4450984d0a18cd4e352d396231ba2c457d20feea "nvptx: Fix copy'n'paste-o in '__builtin_nvptx_brev' description", see attached. > +@enddefbuiltin > + > +@defbuiltin{unsigned long long __builtin_nvptx_brevll (unsigned long long @var{x})} > +Reverse the bit order of a 64-bit unsigned integer. > +@enddefbuiltin > + > @node Basic PowerPC Built-in Functions > @subsection Basic PowerPC Built-in Functions Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 From 4450984d0a18cd4e352d396231ba2c457d20feea Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 4 Sep 2023 17:20:28 +0200 Subject: [PATCH] nvptx: Fix copy'n'paste-o in '__builtin_nvptx_brev' description Minor fix-up for commit c09471fbc7588db2480f036aa56a2403d3c03ae5 "nvptx: Add suppport for __builtin_nvptx_brev instrinsic". gcc/ * doc/extend.texi (Nvidia PTX Built-in Functions): Fix copy'n'paste-o in '__builtin_nvptx_brev' description. --- gcc/doc/extend.texi | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 406ccc9bc75..a95121b0124 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -18471,7 +18471,6 @@ These built-in functions are available for the Nvidia PTX target: @defbuiltin{unsigned int __builtin_nvptx_brev (unsigned int @var{x})} Reverse the bit order of a 32-bit unsigned integer. -Disable global interrupt. @enddefbuiltin @defbuiltin{unsigned long long __builtin_nvptx_brevll (unsigned long long @var{x})} -- 2.34.1