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 > > This patch has been tested on nvptx-none which make and make -k check > with no new failures. Ok for mainline? (That got pushed in commit c09471fbc7588db2480f036aa56a2403d3c03ae5 "nvptx: Add suppport for __builtin_nvptx_brev instrinsic".) > --- /dev/null > +++ b/gcc/testsuite/gcc.target/nvptx/brev-1.c > +[...] > --- /dev/null > +++ b/gcc/testsuite/gcc.target/nvptx/brev-2.c > +[...] > --- /dev/null > +++ b/gcc/testsuite/gcc.target/nvptx/brevll-1.c > +[...] > --- /dev/null > +++ b/gcc/testsuite/gcc.target/nvptx/brevll-2.c > +[...] Pushed to master branch commit 61c45c055a5ccfc59463c21ab057dece822d973c "nvptx: Extend 'brev' test cases", see attached. That's in order to observe effects of a later patch, and also to exercise the new nvptx 'check-function-bodies' a bit. 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