[nvptx, testsuite] Add -mptx=_ in nvptx.exp test-cases
authorTom de Vries <tdevries@suse.de>
Fri, 25 Feb 2022 15:37:59 +0000 (16:37 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 28 Feb 2022 09:10:50 +0000 (10:10 +0100)
commit01cc75e3b647e6f961849e7c72dfc76d06361402
tree9ad969eab7692e33b365565862e9b15a8d507550
parent9d87ad0ca5cd18807546a081e7d539be8b5418bf
[nvptx, testsuite] Add -mptx=_ in nvptx.exp test-cases

When running with target board nvptx-none-run/-mptx=3.1, I run into:
...
cc1: error: PTX version (-mptx) needs to be at least 4.2 to support selected \
  -misa (sm_53)^M
compiler exited with status 1
FAIL: gcc.target/nvptx/atomic-store-1.c (test for excess errors)
...

Fix this and similar cases by adding an explicit -mptx=_ setting.

Tested on nvptx.

gcc/testsuite/ChangeLog:

2022-02-28  Tom de Vries  <tdevries@suse.de>

* gcc.target/nvptx/atomic-store-1.c: Add -mptx=_.
* gcc.target/nvptx/atomic-store-2.c: Same.
* gcc.target/nvptx/float16-1.c: Same.
* gcc.target/nvptx/float16-2.c: Same.
* gcc.target/nvptx/float16-3.c: Same.
* gcc.target/nvptx/float16-4.c: Same.
* gcc.target/nvptx/float16-5.c: Same.
* gcc.target/nvptx/float16-6.c: Same.
* gcc.target/nvptx/tanh-1.c: Same.
* gcc.target/nvptx/uniform-simt-1.c: Same.
* gcc.target/nvptx/uniform-simt-3.c: Same.
gcc/testsuite/gcc.target/nvptx/atomic-store-1.c
gcc/testsuite/gcc.target/nvptx/atomic-store-2.c
gcc/testsuite/gcc.target/nvptx/float16-1.c
gcc/testsuite/gcc.target/nvptx/float16-2.c
gcc/testsuite/gcc.target/nvptx/float16-3.c
gcc/testsuite/gcc.target/nvptx/float16-4.c
gcc/testsuite/gcc.target/nvptx/float16-5.c
gcc/testsuite/gcc.target/nvptx/float16-6.c
gcc/testsuite/gcc.target/nvptx/tanh-1.c
gcc/testsuite/gcc.target/nvptx/uniform-simt-1.c
gcc/testsuite/gcc.target/nvptx/uniform-simt-3.c