]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcn: Add 'nops' insn, extend comments
authorTobias Burnus <tburnus@baylibre.com>
Mon, 28 Jul 2025 10:16:02 +0000 (12:16 +0200)
committerTobias Burnus <tburnus@baylibre.com>
Mon, 28 Jul 2025 10:16:02 +0000 (12:16 +0200)
commit9098f79ff0c559278400cbfbeb8d1101c39e8349
tree042de76e4d760ac3bae0cb9850cdba2756b08829
parent5a433ecf4da6fadc5154fa9458bda57d8a2d8ba2
gcn: Add 'nops' insn, extend comments

Use 's_nops' with a number instead of multiple of 's_nop' when
manually adding 1 to 5 wait state. This helps with
the instruction cache and helps a tiny bit with PR119367 where
a two-byte variable overflows in the debugging location view handling.

Add a comment about 'sc0' to TARGET_GLC_NAME as for atomics it is
unrelated to the scope but to whether the result is stored; i.e.
using e.g. 'sc1' instead of 'sc0' will have undesired consequences!

Update the comment above print_operand_address to document 'R' and 'V';
those are used below as "Temporary hack.", but it makes sense to see
them in the list.

gcc/ChangeLog:

* config/gcn/gcn-opts.h (enum hsaco_attr_type): Add comment
about 'sc0'.
* config/gcn/gcn.cc (gcn_md_reorg): Use gen_nops instead of gen_nop.
(print_operand_address): Document 'R' and 'V' in the
pre-function comment as well.
* config/gcn/gcn.md (nops): Add.
gcc/config/gcn/gcn-opts.h
gcc/config/gcn/gcn.cc
gcc/config/gcn/gcn.md