]> git.ipfire.org Git - thirdparty/gcc.git/commit
[nvptx] Use '%' as register prefix
authorTom de Vries <tdevries@suse.de>
Sun, 20 Mar 2022 11:10:45 +0000 (12:10 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 22 Mar 2022 13:40:04 +0000 (14:40 +0100)
commit24ee43194a542768b987be5d8021ae4ba7bad7b5
treecf83687b1d2def562c811fba90ea354a4b18eeb6
parentb57358cc71356c817500042f7d517ac3309195b1
[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  <tdevries@suse.de>

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