[Bug target/104925] [nvptx] Use "%" as register prefix
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 22 13:41:01 GMT 2022
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 <vries@gcc.gnu.org>:
https://gcc.gnu.org/g:24ee43194a542768b987be5d8021ae4ba7bad7b5
commit r12-7769-g24ee43194a542768b987be5d8021ae4ba7bad7b5
Author: Tom de Vries <tdevries@suse.de>
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 <tdevries@suse.de>
PR target/104925
* config/nvptx/nvptx.md (define_insn "nvptx_uniform_warp_check"):
Use % as register prefix.
More information about the Gcc-bugs
mailing list