https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100497
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tom de Vries <vr...@gcc.gnu.org>: https://gcc.gnu.org/g:58f7c7e098b79c96403c8341823ec3ba1e8b3945 commit r12-846-g58f7c7e098b79c96403c8341823ec3ba1e8b3945 Author: Tom de Vries <tdevr...@suse.de> Date: Mon May 17 10:11:52 2021 +0200 [nvptx] Handle memmodel for atomic ops The atomic ops in nvptx.md have memmodel arguments, which are currently ignored. Handle these, fixing test-case fails libgomp.c-c++-common/reduction-{5,6}.c on volta. Tested libgomp on x86_64-linux with nvptx accelerator. gcc/ChangeLog: 2021-05-17 Tom de Vries <tdevr...@suse.de> PR target/100497 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare * config/nvptx/nvptx.c (nvptx_output_barrier) (nvptx_output_atomic_insn): New function. (nvptx_print_operand): Add support for 'B'. * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic insns.