https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104925

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <[email protected]>:

https://gcc.gnu.org/g:24ee43194a542768b987be5d8021ae4ba7bad7b5

commit r12-7769-g24ee43194a542768b987be5d8021ae4ba7bad7b5
Author: Tom de Vries <[email protected]>
Date:   Sun Mar 20 12:10:45 2022 +0100

    [nvptx] Use '%' as register prefix

    The percentage sign as first character of a ptx identifier can be used to
    avoid name conflicts, e.g., between user-defined variable names and
    compiler-generated names.

    The insn nvptx_uniform_warp_check contains register names without '%'
prefix,
    which potentially could lead to name conflicts with user-defined variable
    names.

    Fix this by adding a '%' prefix, more specifically a '%r_' prefix to avoid
a
    name conflict with ptx special registers.

    Tested on x86_64 with nvptx accelerator.

    gcc/ChangeLog:

    2022-03-20  Tom de Vries  <[email protected]>

            PR target/104925
            * config/nvptx/nvptx.md (define_insn "nvptx_uniform_warp_check"):
            Use % as register prefix.

Reply via email to