]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[nvptx, testsuite] Add -misa=sm_30 in nvptx/uniform-simt-2.c
authorTom de Vries <tdevries@suse.de>
Fri, 25 Feb 2022 15:21:46 +0000 (16:21 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 28 Feb 2022 09:10:49 +0000 (10:10 +0100)
When running with target board nvptx-none-run/-misa=sm_53 we 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/uniform-simt-2.c (test for excess errors)
...

Fix this by adding an explicit -misa=sm_30 in the test-case.

Tested on nvptx.

gcc/testsuite/ChangeLog:

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

* gcc.target/nvptx/uniform-simt-2.c: Add -misa=sm_30.

gcc/testsuite/gcc.target/nvptx/uniform-simt-2.c

index 0f1e4e780fe13ebf22c852f8419548f83b73618d..b1eee0d618fc603418baf6bd216e701bd4d9257a 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-O2 -muniform-simt -mptx=3.1" } */
+/* { dg-options "-O2 -muniform-simt -mptx=3.1 -misa=sm_30" } */
 
 enum memmodel
 {