From: Jeff Law <jeffreyalaw@gmail.com>
To: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] nvptx: Add suppport for __builtin_nvptx_brev instrinsic.
Date: Fri, 19 May 2023 15:36:48 -0600 [thread overview]
Message-ID: <f0916b86-eacf-7ebb-c62b-a0f5599b5c93@gmail.com> (raw)
In-Reply-To: <007301d98034$82486ea0$86d94be0$@nextmovesoftware.com>
On 5/6/23 10:04, 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
>
>
>
> This patch has been tested on nvptx-none which make and make -k check
>
> with no new failures. Ok for mainline?
>
>
>
>
>
> 2023-05-06 Roger Sayle <roger@nextmovesoftware.com>
>
>
>
> gcc/ChangeLog
>
> * config/nvptx/nvptx.cc (nvptx_expand_brev): Expand target
>
> builtin for bit reversal using brev instruction.
>
> (enum nvptx_builtins): Add NVPTX_BUILTIN_BREV and
>
> NVPTX_BUILTIN_BREVLL.
>
> (nvptx_init_builtins): Define "brev" and "brevll".
>
> (nvptx_expand_builtin): Expand NVPTX_BUILTIN_BREV and
>
> NVPTX_BUILTIN_BREVLL via nvptx_expand_brev function.
>
> * doc/extend.texi (Nvidia PTX Builtin-in Functions): New
>
> section, document __builtin_nvptx_brev{,ll}.
>
>
>
> gcc/testsuite/ChangeLog
>
> * gcc.target/nvptx/brev-1.c: New 32-bit test case.
>
> * gcc.target/nvptx/brev-2.c: Likewise.
>
> * gcc.target/nvptx/brevll-1.c: New 64-bit test case.
>
> * gcc.target/nvptx/brevll-2.c: Likewise.
OK
jeff
next prev parent reply other threads:[~2023-05-19 21:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-06 16:04 Roger Sayle
2023-05-19 21:36 ` Jeff Law [this message]
2023-11-15 14:28 ` nvptx: Extend 'brev' test cases (was: [PATCH] nvptx: Add suppport for __builtin_nvptx_brev instrinsic) Thomas Schwinge
2023-11-15 14:36 ` nvptx: Fix copy'n'paste-o in '__builtin_nvptx_brev' description " Thomas Schwinge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f0916b86-eacf-7ebb-c62b-a0f5599b5c93@gmail.com \
--to=jeffreyalaw@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).