[nvptx] Basic -misa support for nvptx

Programming / Compilers / GCC - cesar [138bc75d-0d04-0410-961f-82ee72b054a4] - 5 September 2018 22:27 EDT

gcc/
- config/nvptx/nvptx-opts.h: New file.
- config/nvptx/nvptx.c (nvptx_file_start): Print the correct .target.
- config/nvptx/nvptx.h: Include "nvptx-opts.h". (ASM_SPEC): Define. (TARGET_SM35): New macro.
- config/nvptx/nvptx.md (atomic_fetch_): Enable with the correct predicate.
- config/nvptx/nvptx.opt (ptx_isa, sm_30, sm_35): New enum and its
values. (misa=): New option.
- doc/invoke.texi (Nvidia PTX Options): Document -misa.

gcc/testsuite/
- gcc.target/nvptx/atomic_fetch-1.c: New test.
- gcc.target/nvptx/atomic_fetch-1.c: New test.

51a7d1c8845 [nvptx] Basic -misa support for nvptx
gcc/ChangeLog | 15 +++++++++++++
gcc/config/nvptx/nvptx-opts.h | 30 +++++++++++++++++++++++++
gcc/config/nvptx/nvptx.c | 5 ++++-
gcc/config/nvptx/nvptx.h | 8 +++++++
gcc/config/nvptx/nvptx.md | 3 +--
gcc/config/nvptx/nvptx.opt | 14 ++++++++++++
gcc/doc/invoke.texi | 6 +++++
gcc/testsuite/ChangeLog | 6 +++++
gcc/testsuite/gcc.target/nvptx/atomic-fetch-2.c | 24 ++++++++++++++++++++
gcc/testsuite/gcc.target/nvptx/atomic_fetch-1.c | 24 ++++++++++++++++++++
10 files changed, 132 insertions(+), 3 deletions(-)

Upstream: gcc.gnu.org


  • Share