[nvptx] Add atomic_fetch* support for SImode arguments.
authorCesar Philippidis <cesar@codesourcery.com>
Mon, 17 Sep 2018 19:59:19 +0000 (12:59 -0700)
committerCesar Philippidis <cesar@gcc.gnu.org>
Mon, 17 Sep 2018 19:59:19 +0000 (12:59 -0700)
commit69d7aabfd8fec442047cefb136b1fd2680310fa9
tree5ff611e01425f26733751c7a92913a171d0ee51d
parentfa540cecf5553ab3af9d127a3c7ed3ac901ef0fb
[nvptx] Add atomic_fetch* support for SImode arguments.

gcc/
* config/nvptx/nvptx.md (atomic_fetch_<logic><mode>): Enable with
SImode args.

gcc/testsuite/
* gcc.target/nvptx/atomic-fetch-2.c: Rename to ...
* gcc.target/nvptx/atomic_fetch-2.c: ... this.
* gcc.target/nvptx/atomic_fetch-3.c: New test.

Co-Authored-By: Bernd Schmidt <bernds_cb1@t-online.de>
From-SVN: r264371
gcc/ChangeLog
gcc/config/nvptx/nvptx.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/nvptx/atomic-fetch-2.c [deleted file]
gcc/testsuite/gcc.target/nvptx/atomic_fetch-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nvptx/atomic_fetch-3.c [new file with mode: 0644]